Browse Source

improve makefile dependencies for depmaker/pkgmaker runs

In a built clone, whenever I change any package/*/Makefile, depmaker and
pkgmaker need to be run again. Before, depmaker wasn't run again as long
as ${TOPDIR}/.config wasn't touched (which is in fact unused by depmaker
and therefore probably a wrong dependency), pkgmaker wasn't run as long
as .menu existed (which now has to be newer than any of the above
Makefiles). While here, this patch also fixes a small whitespace error.
Phil Sutter 14 years ago
parent
commit
ae3175dedf
1 changed files with 3 additions and 3 deletions
  1. 3 3
      mk/build.mk

+ 3 - 3
mk/build.mk

@@ -10,7 +10,7 @@ endif
 
 CONFIG_CONFIG_IN = Config.in
 CONFIG = config
-DEFCONFIG= 		ADK_DEVELSYSTEM=n \
+DEFCONFIG=		ADK_DEVELSYSTEM=n \
 			ADK_DEBUG=n \
 			ADK_STATIC=n \
 			ADK_MAKE_PARALLEL=n \
@@ -105,7 +105,7 @@ all: world
 allcopy: all
 	$(CP) $(BIN_DIR) $(TOPDIR)/bulkdir/${targetdir}/
 
-${TOPDIR}/package/Depends.mk: ${TOPDIR}/.config
+${TOPDIR}/package/Depends.mk: ${TOPDIR}/.config $(wildcard ${TOPDIR}/package/*/Makefile)
 	mksh ${TOPDIR}/package/depmaker
 
 .NOTPARALLEL:
@@ -419,7 +419,7 @@ bulk:
 	    ) 2>&1 | tee $(TOPDIR)/bulkdir/$$target-$$libc-$$fs/log; \
 	done <${TOPDIR}/target/bulk.lst
 
-.menu menu:
+menu .menu: $(wildcard ${TOPDIR}/package/*/Makefile)
 	mksh $(TOPDIR)/package/pkgmaker
 	@:>.menu