X-Git-Url: https://git.archive.openwrt.org/?p=openwrt.git;a=blobdiff_plain;f=Makefile;h=25f60e1e545d24c66271e0cdc6c01872ec4c18bf;hp=5b966b752c9dec85fb763ba7213954315f7e4840;hb=c133c86f41a5be64876ad611debb189d5d8b479e;hpb=b155a7112aa89b751711bc563ce9e3be6ecc16a1 diff --git a/Makefile b/Makefile index 5b966b752c..25f60e1e54 100644 --- a/Makefile +++ b/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