mirror of
https://github.com/gbdk-2020/gbdk-2020.git
synced 2026-03-03 05:54:33 +01:00
17 lines
469 B
Makefile
17 lines
469 B
Makefile
# Register all subdirectories in the project's root directory.
|
|
SUBDIRS := $(wildcard */.)
|
|
|
|
# Top-level phony targets.
|
|
all clean compile.bat: $(SUBDIRS) FORCE
|
|
# Similar to:
|
|
# .PHONY: all clean
|
|
# all clean: $(SUBDIRS)
|
|
# GNU's .PHONY target is more efficient in that it explicitly declares non-files.
|
|
|
|
# Recurse `make` into each subdirectory
|
|
# Pass along targets specified at command-line (if any).
|
|
$(SUBDIRS): FORCE
|
|
$(MAKE) -C $@ $(MAKECMDGOALS)
|
|
|
|
# Force targets.
|
|
FORCE: |