mirror of https://github.com/VLSIDA/OpenRAM.git
Add recursive Makefile clean
This commit is contained in:
parent
0e53cdd4e1
commit
18702f5f5e
|
|
@ -1,7 +1,14 @@
|
||||||
SUBDIRS := $(wildcard */.)
|
SUBDIRS := $(wildcard */.)
|
||||||
|
SUBDIRSCLEAN=$(addsuffix clean,$(SUBDIRS))
|
||||||
|
|
||||||
all: $(SUBDIRS)
|
all: $(SUBDIRS)
|
||||||
|
|
||||||
$(SUBDIRS):
|
$(SUBDIRS):
|
||||||
$(MAKE) -C $@
|
$(MAKE) -C $@
|
||||||
|
|
||||||
.PHONY: all $(SUBDIRS)
|
clean:
|
||||||
|
for dir in $(SUBDIRS); do \
|
||||||
|
$(MAKE) -C $$dir $@; \
|
||||||
|
done
|
||||||
|
|
||||||
|
.PHONY: all $(SUBDIRS) $(SUBDIRSCLEAN)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue