Просмотр исходного кода

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.

Adam Heath лет назад: 24
Родитель
Сommit
a8413dd5ca
2 измененных файлов с 11 добавлено и 5 удалено
  1. 6 0
      ChangeLog
  2. 5 5
      Makefile.in

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

+ 5 - 5
Makefile.in

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