diff options
author | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2000-03-10 13:30:03 +0000 |
---|---|---|
committer | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2000-03-10 13:30:03 +0000 |
commit | d574a2e0639717e4293d37f7206fdfe6bf6775e2 (patch) | |
tree | 1bfa45958e6bdd08daef43f76e3cec54ce665c33 /lib | |
parent | 006b5d9be60ee2c804f5329bd3d5947d21a32695 (diff) |
New option for gmake
PROMPT=no
using this at either configuration or compile time will run gmake until
an executable is produced without giving further prompts. The default is
PROMPT=yes
This means that you can do
gmake <config> THORNLIST=MyFavList PROMPT=no
to get an executable.
This is experimental at the moment, since I might change it so that
PROMPT=no still requires you to do a separate configuation and compile step, and add a new option to run them together.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1454 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib')
-rw-r--r-- | lib/make/make.configuration | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/make/make.configuration b/lib/make/make.configuration index 27f3123d..403b846e 100644 --- a/lib/make/make.configuration +++ b/lib/make/make.configuration @@ -128,6 +128,7 @@ $(TOP)/ThornList: @echo $(DIVIDER) @echo Creating compiled ThornList containing all thorns in the arrangements directory $(PERL) -s $(BUILD_ACTIVETHORNS) $(CCTK_HOME)/arrangements > $@ + if test "x$(PROMPT)" = "xyes" ; then \ action="yes"; if [ "x$$EDITOR" = "x" ] ; then EDITOR=vi ; fi; \ while [ "x$$action" = "xyes" -o "x$$action" = "xy" -o "x$$action" = "xYES" -o "x$$action" = "xY" ] ; \ do \ @@ -139,7 +140,8 @@ $(TOP)/ThornList: read action rest ; \ if [ "x$$action" = "xyes" -o "x$$action" = "xy" -o "x$$action" = "xYES" -o "x$$action" = "xY" ] ; \ then $$EDITOR $@ ; fi ; \ - done + done; \ + fi @echo $(DIVIDER) # Allow each thorn to include some global dependencies |