summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-04-07 14:20:11 +0000
committerallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-04-07 14:20:11 +0000
commit0cebd40d77d3455371c2aa2f964edb0f1d9cc135 (patch)
treeeee252567353f9b965857dd147beb64c7b7af5c0 /Makefile
parentda3a012c615183a8b74203c324bf3470ad69bd60 (diff)
Added new target, gmake <config>-activethorns which regenerates the
active thorns list from all your packages, thorns. This basically just does a rm configs/<config>/ActiveThorns ... which is about the same length to type. git-svn-id: http://svn.cactuscode.org/flesh/trunk@449 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 18 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 03b74862..b4140d51 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@
#
#
# @enddesc
-# @version $Id: Makefile,v 1.21 1999-03-25 00:23:44 goodale Exp $
+# @version $Id: Makefile,v 1.22 1999-04-07 14:20:11 allen Exp $
# @@*/
# Make quietly unless told not to
@@ -270,6 +270,23 @@ endif
@echo Configuration $(@:%-rebuild=%) does not exist.
@echo Rebuild aborted.
+# Regenerate the active thorns list
+
+ifneq ($strip($(CONFIGURATIONS)),)
+.PHONY $(addsuffix -activethorns,$(CONFIGURATIONS)):
+
+$(addsuffix -activethorns,$(CONFIGURATIONS)):
+ @echo $(DIVIDER)
+ @echo Regenerating ActiveThorn list $(@:%-activethorns=%)
+ if [ -r configs/$(@:%-activethorns=%)/ActiveThorns ] ; then rm configs/$(@:%-activethorns=%)/ActiveThorns ; fi
+ $(MAKE) $(@:%-activethorns=%)
+endif
+
+%-activethorns:
+ @echo $(DIVIDER)
+ @echo Configuration $(@:%-activethorns=%) does not exist.
+ @echo Regeneration of ActiveThorns aborted.
+
# Rerun the configuration script
ifneq ($strip($(CONFIGURATIONS)),)