summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-09-05 13:50:10 +0000
committerallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-09-05 13:50:10 +0000
commit045d6914b1978ff09f1367b79b369043f4146a21 (patch)
tree941cfe1df58d10dbb10aa586e90097d384f9cdb0 /Makefile
parentc6755d50f6e6738c2e74f1508c59b3e43e801f6b (diff)
Ian's changes to cvs update the files for a given configuration
gmake <config>-cvsupdate git-svn-id: http://svn.cactuscode.org/flesh/trunk@2340 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile30
1 files changed, 26 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 76076495..3c0a9258 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@
#
#
# @enddesc
-# @version $Id: Makefile,v 1.117 2001-08-27 15:52:08 tradke Exp $
+# @version $Id: Makefile,v 1.118 2001-09-05 13:50:09 allen Exp $
# @@*/
##################################################################################
@@ -324,6 +324,7 @@ else
@echo " -testsuite : run the test program."
@echo " -thornlist : regenerates the ThornList file. "
@echo " -ThornGuide : creates the thorn manual for a specific configuration. "
+ @echo " -cvsupdate : updates the files for a specific configuration."
@echo " -examples : copies thorn parameter files to examples directory."
endif
@echo $(DIVIDER)
@@ -881,8 +882,8 @@ endif
%-ThornGuide:
@echo $(DIVIDER)
- @echo Configuration $(@:%-testsuite=%) does not exist.
- @echo Test suite aborted.
+ @echo Configuration $(@:%-ThornGuide=%) does not exist.
+ @echo Thorn Guide creation aborted.
###############################################################################
# End of documentation targets
@@ -905,7 +906,28 @@ cvsstatus:
.PHONY:
cvsupdate:
- $(PERL) -s $(CCTK_HOME)/lib/sbin/CVSUpdate.pl arrangements
+ $(PERL) -s $(CCTK_HOME)/lib/sbin/CVSUpdate.pl arrangements
+
+# run cvsudpate on a configuration
+.PHONY cvsupdate:
+
+ifneq ($strip($(CONFIGURATIONS)),)
+.PHONY $(addsuffix -cvsupdate,$(CONFIGURATIONS)):
+
+$(addsuffix -cvsupdate,$(CONFIGURATIONS)):
+ @echo $(DIVIDER)
+ @echo Updating files for configuration $(@:%-cvsupdate=%)
+ if test -r $(CONFIGS_DIR)/$(@:%-cvsupdate=%)/ThornList ; then \
+ $(PERL) -s lib/sbin/CVSUpdate.pl arrangements $(CONFIGS_DIR)/$(@:%-cvsupdate=%)/ThornList; \
+ cd $(CCTK_HOME); \
+ fi
+ @echo " Done."
+endif
+
+%-cvsupdate:
+ @echo $(DIVIDER)
+ @echo Configuration $(@:%-cvsupdate=%) does not exist.
+ @echo CVS Update aborted.
.PHONY:
cvsdiff: