Commit 6756d3eb authored by Michael Ott's avatar Michael Ott
Browse files

Improved make clean

parent 98e1f69b
...@@ -35,16 +35,15 @@ info: ...@@ -35,16 +35,15 @@ info:
@echo " make all" @echo " make all"
clean: clean:
@echo "Cleaning up... " @$(foreach p,$(PROJECTS),echo "Cleaning $(p)..." && make -C $(p) clean && echo;)
@$(foreach p,$(PROJECTS),make -C $(p) clean;)
cleanall: clean cleanall: clean
@cd $(DCDBDEPSPATH) && rm -f .prerequesites .extract-distfiles .download-distfiles @cd $(DCDBDEPSPATH) && rm -f .prerequesites .extract-distfiles .download-distfiles
@cd $(DCDBDEPSPATH) && rm -rf mosquitto_build @cd $(DCDBDEPSPATH) && rm -rf mosquitto_build
@$(foreach f,$(DISTFILESPATHS),echo "Cleaning $(f)..." && rm -rf $(DCDBDEPSPATH)/$(f);) @$(foreach f,$(DISTFILESPATHS),echo "Cleaning $(f)..." && rm -rf $(DCDBDEPSPATH)/$(f) && echo;)
distclean: distclean: clean
@echo "Wiping..." @echo "Wiping dependencies..."
@rm -rf $(DCDBDEPSPATH) @rm -rf $(DCDBDEPSPATH)
all: $(DCDBDEPSPATH)/.prerequesites all: $(DCDBDEPSPATH)/.prerequesites
...@@ -104,6 +103,7 @@ $(DCDBDEPSPATH)/%/.dirstamp: $(DCDBDEPSPATH)/.download-distfiles ...@@ -104,6 +103,7 @@ $(DCDBDEPSPATH)/%/.dirstamp: $(DCDBDEPSPATH)/.download-distfiles
@touch $@ @touch $@
$(PROJECTS): $(DCDBDEPSPATH)/.prerequesites $(PROJECTS): $(DCDBDEPSPATH)/.prerequesites
@echo ""
@echo "Building $@..." @echo "Building $@..."
@$(MAKE) -C $@ @$(MAKE) -C $@
@echo "Installing $@..." @echo "Installing $@..."
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment