Commit 3373a7bc authored by Michael Shigorin's avatar Michael Shigorin

Makefile: make everything

$(IMAGES) in prerequisites definitely won't work, so let's do it straightforward.
parent 0c987333
......@@ -18,6 +18,8 @@ include distro.mk
include log.mk
include iso.mk
.PHONY: $(IMAGES)
# we can't use implicit rules for top-level targets, only for prereqs
# NB: what about static pattern rules?
# TODO: move into libdistro?
......@@ -30,6 +32,9 @@ IMAGEDIR ?= $(shell [ -d "$$HOME/out" -a -w "$$HOME/out" ] \
|| echo "$(BUILDDIR)/out" )
IMAGENAME ?= mkimage-profiles-$(ARCH).iso
everything:
@for i in $(IMAGES); do $(MAKE) BUILDDIR=$(BUILDDIR) $$i; done
$(IMAGES): %.iso: | profile/init distro/% boot/isolinux profile/populate iso
@# TODO: run automated tests (e.g. iso size)
@OUTNAME="$(@:.iso=)-$(DATE)-$(ARCH).iso"; \
......
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