From 567a9388d8fe080ac608cc0380fbe5375159b0f9 Mon Sep 17 00:00:00 2001 From: d0p1 Date: Mon, 30 Dec 2024 20:44:57 +0100 Subject: [PATCH] build: fix default rule in submakefile --- bin/Makefile | 6 +++--- boot/Makefile | 6 +++--- external/Makefile | 6 +++--- lib/Makefile | 6 +++--- modules/Makefile | 6 +++--- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/bin/Makefile b/bin/Makefile index 974f1bf..ff7a79f 100644 --- a/bin/Makefile +++ b/bin/Makefile @@ -2,10 +2,10 @@ TOPGOALS = all clean install SUBDIRS = cmd +.PHONY: $(TOPGOALS) +$(TOPGOALS): $(SUBDIRS) + .PHONY: $(SUBDIRS) $(SUBDIRS): @echo "📁 bin/$@" @DESTDIR=$(DESTDIR)/bin $(MAKE) -C $@ $(MAKECMDGOALS) - -.PHONY: $(TOPGOALS) -$(TOPGOALS): $(SUBDIRS) diff --git a/boot/Makefile b/boot/Makefile index 401141e..a36caa8 100644 --- a/boot/Makefile +++ b/boot/Makefile @@ -2,10 +2,10 @@ TOPGOALS = all clean install SUBDIRS = bootsect loader efi +.PHONY: $(TOPGOALS) +$(TOPGOALS): $(SUBDIRS) + .PHONY: $(SUBDIRS) $(SUBDIRS): @echo "📁 boot/$@" @DESTDIR=$(DESTDIR) $(MAKE) -C $@ $(MAKECMDGOALS) - -.PHONY: $(TOPGOALS) -$(TOPGOALS): $(SUBDIRS) diff --git a/external/Makefile b/external/Makefile index fe9e021..00321ad 100644 --- a/external/Makefile +++ b/external/Makefile @@ -2,10 +2,10 @@ TOPGOALS = all clean install SUBDIRS = +.PHONY: $(TOPGOALS) +$(TOPGOALS): $(SUBDIRS) + .PHONY: $(SUBDIRS) $(SUBDIRS): @echo "📁 external/$@" @DESTDIR=$(DESTDIR) $(MAKE) -C $@ $(MAKECMDGOALS) - -.PHONY: $(TOPGOALS) -$(TOPGOALS): $(SUBDIRS) diff --git a/lib/Makefile b/lib/Makefile index 32637f0..1af7720 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -2,10 +2,10 @@ SUBDIRS = csu crypto lzp c TOPGOALS = all clean install +.PHONY: $(TOPGOALS) +$(TOPGOALS): $(SUBDIRS) + .PHONY: $(SUBDIRS) $(SUBDIRS): @echo "📁 lib/$@" @DESTDIR=$(DESTDIR) $(MAKE) -C $@ $(MAKECMDGOALS) - -.PHONY: $(TOPGOALS) -$(TOPGOALS): $(SUBDIRS) diff --git a/modules/Makefile b/modules/Makefile index 0399a2f..cecb3ee 100644 --- a/modules/Makefile +++ b/modules/Makefile @@ -2,10 +2,10 @@ TOPGOALS = all clean install SUBDIRS = dummy +.PHONY: $(TOPGOALS) +$(TOPGOALS): $(SUBDIRS) + .PHONY: $(SUBDIRS) $(SUBDIRS): @echo "📁 modules/$@" @DESTDIR=$(DESTDIR) $(MAKE) -C $@ $(MAKECMDGOALS) - -.PHONY: $(TOPGOALS) -$(TOPGOALS): $(SUBDIRS)