[project @ 2002-07-23 11:25:27 by simonmar]
authorsimonmar <unknown>
Tue, 23 Jul 2002 11:25:27 +0000 (11:25 +0000)
committersimonmar <unknown>
Tue, 23 Jul 2002 11:25:27 +0000 (11:25 +0000)
if $(STAMP_PKG_CONF) is non-null, then wait for it before generating
dependencies.  This avoids a race with 'make -j' where package.conf
could get modified while the compiler is reading it.

mk/target.mk

index ac22224..3a54c97 100644 (file)
@@ -72,7 +72,13 @@ include $(TOP)/mk/package.mk
 # Compiler produced files that are targets of the source's imports.
 MKDEPENDHS_OBJ_SUFFICES=o
 
-depend :: $(MKDEPENDHS_SRCS) $(MKDEPENDC_SRCS)
+ifneq "$(STAMP_PKG_CONF)" ""
+PKGCONF_DEP = $(STAMP_PKG_CONF)
+else
+PKGCONF_DEP =
+endif
+
+depend :: $(MKDEPENDHS_SRCS) $(MKDEPENDC_SRCS) $(STAMP_PKG_CONF)
        @$(RM) .depend
        @touch .depend
 ifneq "$(DOC_SRCS)" ""