make sure tmp/info gets created
authorFelix Fietkau <nbd@openwrt.org>
Wed, 28 Mar 2007 18:26:21 +0000 (18:26 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 28 Mar 2007 18:26:21 +0000 (18:26 +0000)
SVN-Revision: 6749

Makefile
include/scan.mk

index bcbfd561b9804632b9e480dd91ec4b6f3d017397..9b358c3b7a79309b2e2513b5f6596de7dd2ef24c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -45,9 +45,11 @@ ifeq ($(FORCE),)
 endif
 
 tmp/.pkginfo: FORCE
+       @mkdir -p tmp/info
        @$(NO_TRACE_MAKE) -s -f include/scan.mk SCAN_TARGET="pkginfo" SCAN_DIR="package" SCAN_NAME="package" SCAN_DEPS="$(shell ls include/package*.mk) include/kernel.mk" SCAN_EXTRA=""
 
 tmp/.targetinfo: FORCE
+       @mkdir -p tmp/info
        @$(NO_TRACE_MAKE) -s -f include/scan.mk SCAN_TARGET="targetinfo" SCAN_DIR="target/linux" SCAN_NAME="target" SCAN_DEPS="$(shell ls include/kernel*.mk)" SCAN_EXTRA=""
 
 tmpinfo-clean: FORCE
index a7f74ecec8b637cfa46d8b3aed6d679497717984..3229523ea4ef36c0c1e28543ad6b433c6c4705ed 100644 (file)
@@ -28,7 +28,6 @@ ifneq ($(SCAN_EXTRA),)
 SCAN_STAMP=tmp/info/.scan-$(SCAN_TARGET)-$(shell ls $(SCAN_EXTRA) 2>/dev/null | (md5sum || md5) 2>/dev/null | cut -d' ' -f1)
 $(SCAN_STAMP):
        rm -f tmp/info/.scan-$(SCAN_TARGET)-*
-       mkdir -p $(shell dirname $@)
        touch $@
 endif