Read about our upcoming Code of Conduct on this issue

Commit 4c171200 authored by alex@thinkpad's avatar alex@thinkpad
Browse files

Makefile: always check all minimal targets when running "make zip"

(only check whether they compile without errors, just like with the installer)

--HG--
branch : qemu
parent e8c2e3561955
......@@ -82,7 +82,7 @@ prepare_zip: FORCE
mkdir -p $(INSTALL_DIR)
# zip.txt must be the first item on the list!
magiclantern-$(VERSION).zip: install installer_check installdoc
magiclantern-$(VERSION).zip: install installer_check installdoc minimal_check
-$(call rm_files, $@)
chmod -x $(INSTALL_DIR)/autoexec.bin
cd $(INSTALL_DIR); zip -z ../$@ < \
......
# https://stackoverflow.com/questions/17834582/run-make-in-each-subdirectory/17845120#17845120
TOPTARGETS := all clean
SUBDIRS := $(wildcard */.)
$(TOPTARGETS): $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@ $(MAKECMDGOALS)
.PHONY: $(TOPTARGETS) $(SUBDIRS)
......@@ -66,3 +66,9 @@ installer_check:
$(info )
endif
# make sure the minimal targets can be compiled without errors
# the results won't be included in the zip; this is just to prevent code rot
minimal_check:
$(MAKE) -C $(TOP_DIR)/minimal/ MODEL=$(MODEL) clean
$(MAKE) -C $(TOP_DIR)/minimal/ MODEL=$(MODEL) FW_VERSION=$(FW_VERSION)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment