summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-11-18 21:12:18 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-11-18 21:12:18 +0000
commitaef03f09b5e9a115a249500b0bdd71f12c292efe (patch)
treeb1b1890572d054629da998299f966da752b9233c /Makefile
parent0a699b0a9f7b8ada67cea99f7168f33944c759a4 (diff)
downloadmtk-20170518-aef03f09b5e9a115a249500b0bdd71f12c292efe.zip
mtk-20170518-aef03f09b5e9a115a249500b0bdd71f12c292efe.tar.gz
mtk-20170518-aef03f09b5e9a115a249500b0bdd71f12c292efe.tar.bz2
add prereq checks for target/linux/* and target/image/*, check for fdisk for the x86 builds
SVN-Revision: 5569
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index eed9335..3551a64 100644
--- a/Makefile
+++ b/Makefile
@@ -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