From 74df970a037410bd86ab59b04ba58f9d51498a74 Mon Sep 17 00:00:00 2001 From: Claudio Sacerdoti Coen Date: Mon, 4 Jul 2005 14:41:41 +0000 Subject: [PATCH] make clean now prints what is being removed --- helm/matita/library/Makefile | 2 +- helm/matita/tests/Makefile | 32 ++++++++++++++++++-------------- 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/helm/matita/library/Makefile b/helm/matita/library/Makefile index e76703a47..b3c1ae817 100644 --- a/helm/matita/library/Makefile +++ b/helm/matita/library/Makefile @@ -32,7 +32,7 @@ verboseopt: clean: $(LINKS) $(H)rm -f $(SRC:%.ma=%.moo) - $(H)$(MATITACLEAN) $(SRC) + $(MATITACLEAN) $(SRC) cleanall: $(LINKS) $(H)rm -f $(SRC:%.ma=%.moo) diff --git a/helm/matita/tests/Makefile b/helm/matita/tests/Makefile index 540a90a73..b3c1ae817 100644 --- a/helm/matita/tests/Makefile +++ b/helm/matita/tests/Makefile @@ -14,47 +14,51 @@ MATITADEPOPT=../matitadep.opt DEPEND_NAME=.depend LINKS=.matita matita.lang matita.conf.xml +H=@ + all: $(LINKS) $(SRC:%.ma=%.moo) opt: - @make MATITAC="$(MATITACOPT)" MATITACLEAN="$(MATITACLEANOPT)" MATITADEP="$(MATITADEPOPT)" all + $(H)make MATITAC="$(MATITACOPT)" MATITACLEAN="$(MATITACLEANOPT)" MATITADEP="$(MATITADEPOPT)" all verbose.opt: - @make MATITAC="$(VERBOSEMATITAC)" MATITACLEAN="$(MATITACLEANOPT)" MATITADEP="$(MATITADEPOPT)" all + $(H)make MATITAC="$(VERBOSEMATITAC)" MATITACLEAN="$(MATITACLEANOPT)" MATITADEP="$(MATITADEPOPT)" all verboseopt: - @make MATITAC="$(VERBOSEMATITACOPT)" MATITACLEAN="$(MATITACLEANOPT)" MATITADEP="$(MATITADEPOPT)" all + $(H)make MATITAC="$(VERBOSEMATITACOPT)" MATITACLEAN="$(MATITACLEANOPT)" MATITADEP="$(MATITADEPOPT)" all %.opt: - @make MATITAC="$(MATITACOPT)" MATITACLEAN="$(MATITACLEANOPT)" MATITADEP="$(MATITADEPOPT)" $(@:%.opt=%) + $(H)make MATITAC="$(MATITACOPT)" MATITACLEAN="$(MATITACLEANOPT)" MATITADEP="$(MATITADEPOPT)" $(@:%.opt=%) clean: $(LINKS) - @rm -f $(SRC:%.ma=%.moo) - @$(MATITACLEAN) $(SRC) + $(H)rm -f $(SRC:%.ma=%.moo) + $(MATITACLEAN) $(SRC) cleanall: $(LINKS) - @rm -f $(SRC:%.ma=%.moo) + $(H)rm -f $(SRC:%.ma=%.moo) $(MATITACLEAN) all -depend: $(DEPEND_NAME) +depend: + rm $(DEPEND_NAME) + make $(DEPEND_NAME) .PHONY: depend %.moo:%.ma $(LINKS) - @[ ! -e $@ ] || $(MATITACLEAN) $< - @$(MATITAC) $< || $(MATITACLEAN) $< + $(H)[ ! -e $@ ] || $(MATITACLEAN) $< + $(H)$(MATITAC) $< || $(MATITACLEAN) $< $(DEPEND_NAME): $(SRC) $(LINKS) - @$(MATITADEP) $(SRC) > $@ + $(H)$(MATITADEP) $(SRC) > $@ # Let's prepare the environment .matita: - @ln -fs ../.matita . + $(H)ln -fs ../.matita . matita.lang: - @ln -fs ../matita.lang . + $(H)ln -fs ../matita.lang . matita.conf.xml: - @ln -fs ../matita.conf.xml . + $(H)ln -fs ../matita.conf.xml . #done include $(DEPEND_NAME) -- 2.39.2