From 0b287401627a278626d570aecb1440c259babb66 Mon Sep 17 00:00:00 2001 From: nbd Date: Sat, 18 Nov 2006 21:12:18 +0000 Subject: 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 --- Makefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index eed9335a5..3551a6415 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 -- cgit v1.2.3