diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-11-18 21:12:18 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-11-18 21:12:18 +0000 |
commit | 25fe6a2e0463d47da598c8e22cd242e9c9fcbad1 (patch) | |
tree | 6d92e02e200b8fd692c14a85c5f7f8959ae8fb8f /Makefile | |
parent | e438f2500b19dbb9020f8d26105e838e86cb7ebb (diff) | |
download | upstream-25fe6a2e0463d47da598c8e22cd242e9c9fcbad1.tar.gz upstream-25fe6a2e0463d47da598c8e22cd242e9c9fcbad1.tar.bz2 upstream-25fe6a2e0463d47da598c8e22cd242e9c9fcbad1.zip |
add prereq checks for target/linux/* and target/image/*, check for fdisk for the x86 builds
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5569 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -49,7 +49,7 @@ endif ifeq ($(FORCE),) .config scripts/config/conf scripts/config/mconf: tmp/.prereq-build - world: tmp/.prereq-packages + world: tmp/.prereq-packages tmp/.prereq-target endif tmp/.pkginfo: @@ -133,8 +133,16 @@ tmp/.prereq-packages: include/prereq.mk tmp/.pkginfo .config false; \ } @touch $@ - -prereq: tmp/.prereq-build tmp/.prereq-packages FORCE + +tmp/.prereq-target: include/prereq.mk tmp/.targetinfo .config + @mkdir -p tmp + @$(NO_TRACE_MAKE) -s -C target prereq 2>/dev/null || { \ + echo "Prerequisite check failed. Use FORCE=1 to override."; \ + false; \ + } + @touch $@ + +prereq: tmp/.prereq-build tmp/.prereq-packages tmp/.prereq-target FORCE download: .config FORCE $(MAKE) tools/download |