Skip to content
Snippets Groups Projects
Commit c4853a58 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Store Makefile.conf in config.txt

parent 27e7408d
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,8 @@ Options:
check if plumed has features words
module [word1 [word2]..]
check if plumed has enables modules words
makefile_conf
dumps the Makefile.conf file
Examples:
......@@ -48,6 +50,10 @@ do
;;
(has) action=has ;;
(module) action=module ;;
(makefile_conf)
echo "$configfile" | awk '{if($1=="makefile_conf") { gsub("^makefile_conf ",""); print} }'
exit 0
;;
(*)
checklist="$checklist $opt"
esac
......
......@@ -23,7 +23,7 @@ obj: all
config.txt: ../../Makefile.conf
@echo "Updating config.txt file"
@ ../maketools/update-config-txt.sh config.txt $(CPPFLAGS)
@makefile_conf="$(realpath ../../Makefile.conf)" ../maketools/update-config-txt.sh config.txt $(CPPFLAGS)
version.h:
@echo "Updating version.h"
......
......@@ -131,6 +131,10 @@ echo
echo "# list of modules"
echo "# syntax: module name on/off (default-on/default-off/always)"
echo "$modules" | sort
echo
echo "# Makefile.conf file"
echo "# syntax: makefile_conf followed by a single space followed by a line from makefile_conf"
cat "$makefile_conf" | awk '{printf("makefile_conf %s\n",$0)}'
}> $file~
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment