mirror of
https://github.com/VLSIDA/OpenRAM.git
synced 2026-09-08 12:03:27 +02:00
Add recursive Makefile clean
This commit is contained in:
+8
-1
@@ -1,7 +1,14 @@
|
||||
SUBDIRS := $(wildcard */.)
|
||||
SUBDIRSCLEAN=$(addsuffix clean,$(SUBDIRS))
|
||||
|
||||
all: $(SUBDIRS)
|
||||
|
||||
$(SUBDIRS):
|
||||
$(MAKE) -C $@
|
||||
|
||||
.PHONY: all $(SUBDIRS)
|
||||
clean:
|
||||
for dir in $(SUBDIRS); do \
|
||||
$(MAKE) -C $$dir $@; \
|
||||
done
|
||||
|
||||
.PHONY: all $(SUBDIRS) $(SUBDIRSCLEAN)
|
||||
|
||||
Reference in New Issue
Block a user