Re: [Linux-ia64] Parallel make

From: Sam Ravnborg <sam_at_ravnborg.org>
Date: 2003-05-15 03:48:46
On Wed, May 14, 2003 at 01:38:23PM +1000, Ian Wienand wrote:
> When I try a parallel make, make seems to get it's dependencies out of
> order.  

Could you try the following patch.

It does:
1) Remove superflous all: target, covered by the main Makefile
2) .PHONY shall only list non-file targets
3) Use make $@, $< where appropriate
4) For the offset file do not duplicate dependencies from main Makefile

	Sam

===== arch/ia64/Makefile 1.42 vs edited =====
--- 1.42/arch/ia64/Makefile	Wed Mar 26 17:30:43 2003
+++ edited/arch/ia64/Makefile	Wed May 14 19:46:03 2003
@@ -60,17 +60,15 @@
 boot := arch/ia64/boot
 tools := arch/ia64/tools
 
-.PHONY: boot compressed include/asm-ia64/offsets.h
-
-all: prepare vmlinux
+.PHONY: boot compressed check
 
 compressed: vmlinux.gz
 
 vmlinux.gz: vmlinux
-	$(Q)$(MAKE) $(build)=$(boot) vmlinux.gz
+	$(Q)$(MAKE) $(build)=$(boot) $@
 
 check: vmlinux
-	arch/ia64/scripts/unwcheck.sh vmlinux
+	arch/ia64/scripts/unwcheck.sh $<
 
 archclean:
 	$(Q)$(MAKE) $(clean)=$(boot)
@@ -83,7 +81,7 @@
 boot:	lib/lib.a vmlinux
 	$(Q)$(MAKE) $(build)=$(boot) $@
 
-include/asm-ia64/offsets.h: include/asm include/linux/version.h include/config/MARKER
+include/asm-ia64/offsets.h:
 	$(Q)$(MAKE) $(build)=$(tools) $@
 
 define archhelp
Received on Wed May 14 10:48:54 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:14 EST