cscg22-gearboy

CSCG 2022 Challenge 'Gearboy'
git clone https://git.sinitax.com/sinitax/cscg22-gearboy
Log | Files | Refs | sfeed.txt

Makefile (469B)


      1# Register all subdirectories in the project's root directory.
      2SUBDIRS := $(wildcard */.)
      3
      4# Top-level phony targets.
      5all clean compile.bat: $(SUBDIRS) FORCE
      6# Similar to:
      7# .PHONY: all clean
      8# all clean: $(SUBDIRS)
      9# GNU's .PHONY target is more efficient in that it explicitly declares non-files.
     10
     11# Recurse `make` into each subdirectory
     12# Pass along targets specified at command-line (if any).
     13$(SUBDIRS): FORCE
     14	$(MAKE) -C $@ $(MAKECMDGOALS)
     15
     16# Force targets.
     17FORCE: