diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-07-19 13:25:09 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-07-19 13:25:09 +0000 |
commit | 0bb39567cdbbfc9ac81ea68e5524c390039a73be (patch) | |
tree | 5fa8afcb636fb55e2fefc4c1bba646a884ecb6c5 /Makefile | |
parent | 1cc5994a92c96d426b5406272c38d06181cf4e93 (diff) | |
download | upstream-0bb39567cdbbfc9ac81ea68e5524c390039a73be.tar.gz upstream-0bb39567cdbbfc9ac81ea68e5524c390039a73be.tar.bz2 upstream-0bb39567cdbbfc9ac81ea68e5524c390039a73be.zip |
add a simple prerequisite check
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4168 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -81,11 +81,24 @@ toolchain/%: FORCE @[ -f .config ] || $(NO_TRACE_MAKE) menuconfig @$< -D .config Config.in &> /dev/null +.prereq: $(TOPDIR)/include/prereq.mk .pkginfo + @$(NO_TRACE_MAKE) -s -f $(TOPDIR)/include/prereq.mk prereq 2>/dev/null || { \ + echo "Prerequisite check failed. Use FORCE=1 to override."; \ + false; \ + } + @touch $@ + +prereq: .prereq FORCE + download: .config FORCE $(MAKE) toolchain/download $(MAKE) package/download $(MAKE) target/download +ifeq ($(FORCE),) +world: .prereq +endif + world: .config FORCE $(MAKE) toolchain/install $(MAKE) target/compile |