build: fix default rule in submakefile

This commit is contained in:
d0p1 🏳️‍⚧️ 2024-12-30 20:44:57 +01:00
parent bd625fa56c
commit 567a9388d8
5 changed files with 15 additions and 15 deletions

View file

@ -2,10 +2,10 @@ TOPGOALS = all clean install
SUBDIRS = cmd SUBDIRS = cmd
.PHONY: $(TOPGOALS)
$(TOPGOALS): $(SUBDIRS)
.PHONY: $(SUBDIRS) .PHONY: $(SUBDIRS)
$(SUBDIRS): $(SUBDIRS):
@echo "📁 bin/$@" @echo "📁 bin/$@"
@DESTDIR=$(DESTDIR)/bin $(MAKE) -C $@ $(MAKECMDGOALS) @DESTDIR=$(DESTDIR)/bin $(MAKE) -C $@ $(MAKECMDGOALS)
.PHONY: $(TOPGOALS)
$(TOPGOALS): $(SUBDIRS)

View file

@ -2,10 +2,10 @@ TOPGOALS = all clean install
SUBDIRS = bootsect loader efi SUBDIRS = bootsect loader efi
.PHONY: $(TOPGOALS)
$(TOPGOALS): $(SUBDIRS)
.PHONY: $(SUBDIRS) .PHONY: $(SUBDIRS)
$(SUBDIRS): $(SUBDIRS):
@echo "📁 boot/$@" @echo "📁 boot/$@"
@DESTDIR=$(DESTDIR) $(MAKE) -C $@ $(MAKECMDGOALS) @DESTDIR=$(DESTDIR) $(MAKE) -C $@ $(MAKECMDGOALS)
.PHONY: $(TOPGOALS)
$(TOPGOALS): $(SUBDIRS)

6
external/Makefile vendored
View file

@ -2,10 +2,10 @@ TOPGOALS = all clean install
SUBDIRS = SUBDIRS =
.PHONY: $(TOPGOALS)
$(TOPGOALS): $(SUBDIRS)
.PHONY: $(SUBDIRS) .PHONY: $(SUBDIRS)
$(SUBDIRS): $(SUBDIRS):
@echo "📁 external/$@" @echo "📁 external/$@"
@DESTDIR=$(DESTDIR) $(MAKE) -C $@ $(MAKECMDGOALS) @DESTDIR=$(DESTDIR) $(MAKE) -C $@ $(MAKECMDGOALS)
.PHONY: $(TOPGOALS)
$(TOPGOALS): $(SUBDIRS)

View file

@ -2,10 +2,10 @@ SUBDIRS = csu crypto lzp c
TOPGOALS = all clean install TOPGOALS = all clean install
.PHONY: $(TOPGOALS)
$(TOPGOALS): $(SUBDIRS)
.PHONY: $(SUBDIRS) .PHONY: $(SUBDIRS)
$(SUBDIRS): $(SUBDIRS):
@echo "📁 lib/$@" @echo "📁 lib/$@"
@DESTDIR=$(DESTDIR) $(MAKE) -C $@ $(MAKECMDGOALS) @DESTDIR=$(DESTDIR) $(MAKE) -C $@ $(MAKECMDGOALS)
.PHONY: $(TOPGOALS)
$(TOPGOALS): $(SUBDIRS)

View file

@ -2,10 +2,10 @@ TOPGOALS = all clean install
SUBDIRS = dummy SUBDIRS = dummy
.PHONY: $(TOPGOALS)
$(TOPGOALS): $(SUBDIRS)
.PHONY: $(SUBDIRS) .PHONY: $(SUBDIRS)
$(SUBDIRS): $(SUBDIRS):
@echo "📁 modules/$@" @echo "📁 modules/$@"
@DESTDIR=$(DESTDIR) $(MAKE) -C $@ $(MAKECMDGOALS) @DESTDIR=$(DESTDIR) $(MAKE) -C $@ $(MAKECMDGOALS)
.PHONY: $(TOPGOALS)
$(TOPGOALS): $(SUBDIRS)