+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
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