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 | 8a0ec5f14f9151e2d4ce4edebe216170178a51c7 (patch) | |
tree | 17af3340d7fd5d19e27f019c4016abea9f179d3a /openwrt/Makefile | |
parent | c4cd40bfad43bcf046b3f353d5dfee6d39b4e884 (diff) | |
download | mtk-20170518-8a0ec5f14f9151e2d4ce4edebe216170178a51c7.zip mtk-20170518-8a0ec5f14f9151e2d4ce4edebe216170178a51c7.tar.gz mtk-20170518-8a0ec5f14f9151e2d4ce4edebe216170178a51c7.tar.bz2 |
add a simple prerequisite check
SVN-Revision: 4168
Diffstat (limited to 'openwrt/Makefile')
-rw-r--r-- | openwrt/Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/openwrt/Makefile b/openwrt/Makefile index 5b966b7..25f60e1 100644 --- a/openwrt/Makefile +++ b/openwrt/Makefile @@ -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 |