[complement-svn] SF.net SVN: complement: [1371] trunk/complement
Status: Pre-Alpha
Brought to you by:
complement
From: <com...@us...> - 2006-11-02 06:48:50
|
Revision: 1371 http://svn.sourceforge.net/complement/?rev=1371&view=rev Author: complement Date: 2006-11-01 22:48:29 -0800 (Wed, 01 Nov 2006) Log Message: ----------- reuse code to traverse subdirs Modified Paths: -------------- trunk/complement/explore/lib/Makefile Added Paths: ----------- trunk/complement/explore/Makefiles/gmake/subdirs.mak trunk/complement/extern/custom/boost/libs/Makefile Added: trunk/complement/explore/Makefiles/gmake/subdirs.mak =================================================================== --- trunk/complement/explore/Makefiles/gmake/subdirs.mak (rev 0) +++ trunk/complement/explore/Makefiles/gmake/subdirs.mak 2006-11-02 06:48:29 UTC (rev 1371) @@ -0,0 +1,23 @@ +# Time-stamp: <06/11/01 22:55:23 ptr> +# +# Copyright (c) 2006 +# Petr Ovtchenkov +# +# Licensed under the Academic Free License version 3.0 +# + +ifdef SUBDIRS +# Do the same target in all catalogs from SUBDIRS +define doinsubdirs +@for d in ${SUBDIRS}; do \ + ${MAKE} -C $$d $@; \ +done +endef + +else +# Dummy, do nothing +define doinsubdirs +endef + +endif + Modified: trunk/complement/explore/lib/Makefile =================================================================== --- trunk/complement/explore/lib/Makefile 2006-11-01 16:40:25 UTC (rev 1370) +++ trunk/complement/explore/lib/Makefile 2006-11-02 06:48:29 UTC (rev 1371) @@ -1,30 +1,17 @@ -# Time-stamp: <03/08/15 12:24:23 ptr> +# Time-stamp: <06/11/01 22:59:18 ptr> +# +# Copyright (c) 2006 +# Petr Ovtchenkov +# +# Licensed under the Academic Free License version 3.0 +# -.PHONY: all clean clobber install +SRCROOT := .. +SUBDIRS := mt sockios stem misc -LIBS_DIR = mt sockios stem misc +include ${SRCROOT}/Makefiles/gmake/subdirs.mak -all: - for d in $(LIBS_DIR); do \ - ( cd $$d; ${MAKE} all ) || exit 1; \ - done +all install depend clean clobber distclean: + $(doinsubdirs) -clean: - for d in $(LIBS_DIR); do \ - ( cd $$d; ${MAKE} clean ) || exit 1; \ - done - -clobber: - for d in $(LIBS_DIR); do \ - ( cd $$d; ${MAKE} clobber ) || exit 1; \ - done - -install: - for d in $(LIBS_DIR); do \ - ( cd $$d; ${MAKE} install ) || exit 1; \ - done - -depend: - for d in $(LIBS_DIR); do \ - ( cd $$d; ${MAKE} depend ) || exit 1; \ - done +.PHONY: all install depend clean clobber distclean Added: trunk/complement/extern/custom/boost/libs/Makefile =================================================================== --- trunk/complement/extern/custom/boost/libs/Makefile (rev 0) +++ trunk/complement/extern/custom/boost/libs/Makefile 2006-11-02 06:48:29 UTC (rev 1371) @@ -0,0 +1,17 @@ +# -*- makefile -*- Time-stamp: <06/11/01 22:56:34 ptr> +# +# Copyright (c) 2006 +# Petr Ovtchenkov +# +# Licensed under the Academic Free License version 3.0 +# + +SRCROOT := ../../../../explore +SUBDIRS := date_time filesystem program_options regex serialization test/unit_test_framework thread + +include ${SRCROOT}/Makefiles/gmake/subdirs.mak + +all install depend clean clobber distclean: + $(doinsubdirs) + +.PHONY: all install depend clean clobber distclean This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |