[csw-devel] SF.net SVN: gar:[2411] csw/mgar/pkg/Makefile

wbonnet at users.sourceforge.net wbonnet at users.sourceforge.net
Sun Nov 30 22:30:49 CET 2008


Revision: 2411
          http://gar.svn.sourceforge.net/gar/?rev=2411&view=rev
Author:   wbonnet
Date:     2008-11-30 21:30:49 +0000 (Sun, 30 Nov 2008)

Log Message:
-----------
Adding target that applies a command in each subdir

Modified Paths:
--------------
    csw/mgar/pkg/Makefile

Modified: csw/mgar/pkg/Makefile
===================================================================
--- csw/mgar/pkg/Makefile	2008-11-30 21:26:37 UTC (rev 2410)
+++ csw/mgar/pkg/Makefile	2008-11-30 21:30:49 UTC (rev 2411)
@@ -1,6 +1,27 @@
+# vim: ft=make ts=4 sw=4 noet
+# This makefile is to be included from Makefiles in each category
+# directory.
+
 default:
 	@echo "You are in the pkg/ directory."
 
+%:
+	@for i in $(filter-out CVS/,$(wildcard */)) ; do \
+		$(MAKE) -C $$i $* ; \
+	done
+
+paranoid-%:
+	@for i in $(filter-out CVS/,$(wildcard */)) ; do \
+		$(MAKE) -C $$i $* || exit 2; \
+	done
+
+export BUILDLOG ?= $(shell pwd)/buildlog.txt
+
+report-%:
+	@for i in $(filter-out CVS/,$(wildcard */)) ; do \
+		$(MAKE) -C $$i $* || echo "	*** make $* in $$i failed ***" >> $(BUILDLOG); \
+	done
+
 newpkg-%:
 	@svn mkdir $* $*/tags $*/branches $*/trunk $*/trunk/files
 	@(echo "GARNAME = package";                                     \


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list