build: fix default rule in submakefile
This commit is contained in:
parent
bd625fa56c
commit
567a9388d8
5 changed files with 15 additions and 15 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
6
external/Makefile
vendored
6
external/Makefile
vendored
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue