mirror of
https://github.com/corundum/corundum.git
synced 2025-01-16 08:12:53 +08:00
26 lines
366 B
Makefile
26 lines
366 B
Makefile
|
# Targets
|
||
|
TARGETS:=
|
||
|
|
||
|
# Subdirectories
|
||
|
SUBDIRS = fpga
|
||
|
SUBDIRS_CLEAN = $(patsubst %,%.clean,$(SUBDIRS))
|
||
|
|
||
|
# Rules
|
||
|
.PHONY: all
|
||
|
all: $(SUBDIRS) $(TARGETS)
|
||
|
|
||
|
.PHONY: $(SUBDIRS)
|
||
|
$(SUBDIRS):
|
||
|
cd $@ && $(MAKE)
|
||
|
|
||
|
.PHONY: $(SUBDIRS_CLEAN)
|
||
|
$(SUBDIRS_CLEAN):
|
||
|
cd $(@:.clean=) && $(MAKE) clean
|
||
|
|
||
|
.PHONY: clean
|
||
|
clean: $(SUBDIRS_CLEAN)
|
||
|
-rm -rf $(TARGETS)
|
||
|
|
||
|
program:
|
||
|
#program commands
|