Skip to content
Snippets Groups Projects
Commit f2ddc2cf authored by Jan Trávníček's avatar Jan Trávníček
Browse files

clean rule in master makefile

parent 39ec19e7
Branches
Tags
No related merge requests found
...@@ -5,6 +5,8 @@ BINFOLDER = bin ...@@ -5,6 +5,8 @@ BINFOLDER = bin
SUBDIRS_LIBS = alib adeterminize SUBDIRS_LIBS = alib adeterminize
SUBDIRS_BINS = acat aconvert aconvert.dot aconvert.gastex aconvert.regexp aconvert.automaton aminimize adeterminize.fsm adiff adiff.automaton adiff.grammar aepsilon SUBDIRS_BINS = acat aconvert aconvert.dot aconvert.gastex aconvert.regexp aconvert.automaton aminimize adeterminize.fsm adiff adiff.automaton adiff.grammar aepsilon
   
SUBDIRS_WITH_MAKE = $(dir $(wildcard */makefile))
.PHONY: $(SUBDIRS_LIBS) $(SUBDIRS_BINS) .PHONY: $(SUBDIRS_LIBS) $(SUBDIRS_BINS)
   
all: $(SUBDIRS_LIBS) $(SUBDIRS_BINS) copy all: $(SUBDIRS_LIBS) $(SUBDIRS_BINS) copy
...@@ -15,6 +17,11 @@ $(SUBDIRS_LIBS): ...@@ -15,6 +17,11 @@ $(SUBDIRS_LIBS):
$(SUBDIRS_BINS): $(SUBDIRS_BINS):
$(MAKE) -C $@ $(MAKE) -C $@
   
clean:
for dir in $(SUBDIRS_WITH_MAKE); do \
$(MAKE) -C $$dir clean; \
done
copy: copy:
mkdir -p $(BINFOLDER) mkdir -p $(BINFOLDER)
rm -rf $(BINFOLDER)/* rm -rf $(BINFOLDER)/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment