]> err.no Git - dpkg/commitdiff
Allow for make -j to work thru the top-level targets. There are problems,
authorAdam Heath <doogie@debian.org>
Sat, 2 Mar 2002 05:54:33 +0000 (05:54 +0000)
committerAdam Heath <doogie@debian.org>
Sat, 2 Mar 2002 05:54:33 +0000 (05:54 +0000)
however, as the system will try to compile the programs before libdpkg is
done.

ChangeLog
Makefile.in

index 66167a0435f94f334dde06086cfb06444243f00c..cda2adbf2ee728a3ebf65e3f5e05f5ad81a72c74 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Fri Mar  1 23:51:06 CST 2002 Adam Heath <doogie@debian.org>
+
+  * Makefile.in: Allow for make -j to work thru the top-level targets.
+    There are problems, however, as the system will try to compile the
+    programs before libdpkg is done.
+
 Fri Mar  1 23:27:16 CST 2002 Adam Heath <doogie@debian.org>
 
   * main/help.c, debian/changelog: Fix segfault with getenv("PATH") returns
index cb312c2bb65494e63517cf8b7c5a8d2c36ae1542..dd4fb5dad0a425ba5a9cd144302a8bf21eabc346 100644 (file)
@@ -27,11 +27,11 @@ distclean: clean distclean-recursive
 version.h: version-nr
        echo "#define DPKG_VERSION \"$(VERSION)\" /* This line modified by Makefile */" > version.h
 
-all-recursive install-recursive clean-recursive distclean-recursive:
-       set -e ; target=`echo $@ | sed s/-recursive//`; \
-           for d in $(SUBDIRS) ; do \
-           $(MAKE) $(MFLAGS) -C $$d $$target ; \
-       done;
+all-recursive install-recursive clean-recursive distclean-recursive: %-recursive:
+       $(MAKE) $(MFLAGS) $(patsubst %,$*-%,$(SUBDIRS))
+
+$(foreach target,all install clean distclean,$(patsubst %,$(target)-%,$(SUBDIRS))):
+       $(MAKE) $(MFLAGS) -C `echo $@ | sed s/[^-]*-//` `echo $@ | sed s/-.*//`
 
 .PHONY: all install clean distclean 
 .PHONY: all-recursive install-recursive clean-recursive distclean-recursive