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)