Skip to content

Commit 8607058

Browse files
committed
Fixed Makefile build / clean dependency chain
1 parent 08d8593 commit 8607058

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ endif
44

55
SUBDIRS := $(dir $(wildcard */Makefile))
66

7-
.PHONY: all clean $(SUBDIRS)
7+
.PHONY: all clean
88

9-
all: $(SUBDIRS) replay.rom
9+
all: replay.rom
1010
@echo "** $@ done"
1111

1212
clean: $(addprefix clean-,$(SUBDIRS))
1313
rm -rf replay.rom
1414
@echo "** $@ done"
1515

16-
$(SUBDIRS):
17-
$(MAKE) -C $@
16+
build-%: %
17+
$(MAKE) -C $<
1818

1919
clean-%: %
2020
$(MAKE) -C $< clean
2121

22-
replay.rom: build_rom.sh
22+
replay.rom: $(addprefix build-,$(SUBDIRS))
2323
./build_rom.sh
2424

2525
include Makefile.build

0 commit comments

Comments
 (0)