summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-10-26 09:40:58 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-10-26 09:40:58 +0000
commiteaa42008a9190a6a82d50a1fb49e1279d1304ff0 (patch)
treee782ab0522eb2531f675d9cc8e755a3f37c39a12 /lib
parent6c12c5d87ac0b0163de11bf1f61fac4e602e0d2e (diff)
Added -editthorns to allow you to edit your thornlist.
Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1104 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib')
-rw-r--r--lib/make/make.configuration21
1 files changed, 20 insertions, 1 deletions
diff --git a/lib/make/make.configuration b/lib/make/make.configuration
index 18a5f7da..8f4effd5 100644
--- a/lib/make/make.configuration
+++ b/lib/make/make.configuration
@@ -149,9 +149,28 @@ endif
# Phony targets.
-.PHONY:update clean cleandeps cleanobjs realclean
+.PHONY:update editthorns clean cleandeps cleanobjs realclean
update:
+editthorns:
+ @echo $(DIVIDER)
+ if test ! -e $(TOP)/ThornList ; then \
+ echo "Creating compiled ThornList containing all thorns in the arrangements directory" \
+ $(PERL) -s $(BUILD_ACTIVETHORNS) $(CCTK_HOME)/arrangements > $@ ; fi
+ 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 $(TOP)/ThornList ; \
+ 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 $(TOP)/ThornList ; fi ; \
+ done
+ @echo $(DIVIDER)
+
clean:
@echo Deleting all object and dependency files in $(TOP)
find $(TOP) \( -name '*.[od]' -o -name '*.a' \) -exec rm {} \;