diff options
author | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-01-19 14:13:56 +0000 |
---|---|---|
committer | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-01-19 14:13:56 +0000 |
commit | f6fb4c3c7988e96c888509d861b3199a71256291 (patch) | |
tree | bf621e710bfa35f7749937e67ffd03ea702652d2 | |
parent | aa2c58afce07259034f7de4257e9c6a43a0cc268 (diff) |
Put a rule in to generate a valid ActiveThorns file.
This will call BuildActiveThorns.pl from the lib/sbin directory to
generate a list.
It then displays the list, and asks the user if they want to edit it.
If they say yes/y/YES/Y it calls an editor. Vi by default, but will use
value of the $EDITOR environment variable if that is set.
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@75 17b73243-c579-4c4c-a9d2-2d5706c11dac
-rw-r--r-- | lib/make/make.configuration | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/lib/make/make.configuration b/lib/make/make.configuration index 04f5e698..4eb3e9a3 100644 --- a/lib/make/make.configuration +++ b/lib/make/make.configuration @@ -9,7 +9,7 @@ # @@*/ # Silence all but designated output -#.SILENT: +.SILENT: # Some configuration variables CONFIG = $(TOP)/config-data @@ -87,8 +87,22 @@ $(CONFIG)/make.thornlist: $(TOP)/ActiveThorns # Rule to build ActiveThorns $(TOP)/ActiveThorns: - @echo Currently $@ must be created by hand and has no effect ! - if [ ! -r $@ ] ; then echo This file doesn\'t do anything yet > $@ ; fi + @echo $(DIVIDER) + @echo Creating ActiveThorn list containing all thorns in the toolkits directory + $(PERL) -s $(CCTK_HOME)/lib/sbin/BuildActiveThorns.pl $(CCTK_HOME)/toolkits > $@ + 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 \ + echo The thorn list is ; \ + echo $(DIVIDER) ; \ + cat $@ ; \ + echo $(DIVIDER) ; \ + echo Edit this list \(no\) ? ; \ + read action rest ; \ + if [ "x$$action" = "xyes" -o "x$$action" = "xy" -o "x$$action" = "xYES" -o "x$$action" = "xY" ] ; \ + then $$EDITOR $@ ; fi ; \ + done + @echo $(DIVIDER) # Phony targets. |