From 2fa112b1b75cef9d593a6b6cc79f06c34f9b983b Mon Sep 17 00:00:00 2001 From: Robb Kistler Date: Mon, 27 Feb 2017 17:02:10 -0800 Subject: [PATCH] Delegated make targets should be phony targets Make won't evaluate actual dependencies of targets called with `$(MAKE) -C` if the target file already exists. Marking the top-level targets `.PHONY` will enable incremental builds. Signed-off-by: Robb Kistler --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 92ce28876..2276e6cca 100644 --- a/Makefile +++ b/Makefile @@ -6,21 +6,27 @@ all: aufs: $(MAKE) AUFS=true all +.PHONY: alpine/initrd.img alpine/initrd.img: $(MAKE) -C alpine initrd.img +.PHONY: alpine/initrd-test.img alpine/initrd-test.img: $(MAKE) -C alpine initrd-test.img +.PHONY: kernel/x86_64/vmlinuz64 kernel/x86_64/vmlinuz64: $(MAKE) -C kernel +.PHONY: alpine/mobylinux-bios.iso alpine/mobylinux-bios.iso: $(MAKE) -C alpine mobylinux-bios.iso +.PHONY: alpine/mobylinux-efi.iso alpine/mobylinux-efi.iso: $(MAKE) -C alpine mobylinux-efi.iso +.PHONY: alpine/gce.img.tar.gz alpine/gce.img.tar.gz: $(MAKE) -C alpine gce.img.tar.gz