Eliminate some multiple targets in Makefile rules
authorMarc Dionne <marc.c.dionne@gmail.com>
Mon, 27 Jul 2009 13:47:08 +0000 (09:47 -0400)
committerDerrick Brashear <shadow@dementia.org>
Fri, 31 Jul 2009 03:11:18 +0000 (20:11 -0700)
Rules with multiple targets can cause problems with parallel builds.
This patch fixes two cases that have caused occasional build errors.

Reviewed-on: http://gerrit.openafs.org/257
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>

src/budb/Makefile.in
src/volser/Makefile.in

index 022236e..9611616 100644 (file)
@@ -72,7 +72,9 @@ ${TOP_INCDIR}/afs/budb_prototypes.h: budb_prototypes.h
 #
 budb_errs.o: budb_errs.c budb_client.h budb_errs.h
 
-budb_errs.c budb_client.h: budb_errs.et budb_client.p.h
+budb_client.h: budb_errs.c
+
+budb_errs.c: budb_errs.et budb_client.p.h
        $(RM) -f budb_client.h budb_errs.c; ${COMPILE_ET} -p ${srcdir} budb_errs -h budb_client
 
 budb_errs.h: budb_errs.et
index fe11c4e..f9e0fcd 100644 (file)
@@ -95,7 +95,9 @@ libvolser.a: volint.cs.o  $(VSOBJS) volint.ss.o AFS_component_version_number.o
        $(AR) crv $@ volint.cs.o $(VSOBJS) volint.ss.o AFS_component_version_number.o 
        $(RANLIB) $@
 
-volser.h volerr.c: volerr.et volser.p.h
+volser.h: volerr.c
+
+volerr.c: volerr.et volser.p.h
        $(RM) -f volser.h volerr.c
        ${COMPILE_ET} -p ${srcdir} volerr -h volser