SRC=$(wildcard *.ma) MATITAC=../scripts/do_tests.sh $(DO_TESTS_OPTS) ../matitac ../matitaclean /dev/null MATITACOPT=../scripts/do_tests.sh $(DO_TESTS_OPTS) ../matitac.opt ../matitaclean.opt /dev/null VERBOSEMATITAC=../matitac VERBOSEMATITACOPT=../matitac.opt MATITACLEAN=../matitaclean MATITACLEANOPT=../matitaclean.opt MATITADEP=../matitadep MATITADEPOPT=../matitadep.opt DEPEND_NAME=.depend LINKS=.matita matita.lang matita.conf.xml all: $(LINKS) $(SRC:%.ma=%.moo) opt: @make MATITAC="$(MATITACOPT)" MATITACLEAN="$(MATITACLEANOPT)" MATITADEP="$(MATITADEPOPT)" all verbose.opt: @make MATITAC="$(VERBOSEMATITAC)" MATITACLEAN="$(MATITACLEANOPT)" MATITADEP="$(MATITADEPOPT)" all verboseopt: @make MATITAC="$(VERBOSEMATITACOPT)" MATITACLEAN="$(MATITACLEANOPT)" MATITADEP="$(MATITADEPOPT)" all %.opt: @make MATITAC="$(MATITACOPT)" MATITACLEAN="$(MATITACLEANOPT)" MATITADEP="$(MATITADEPOPT)" $(@:%.opt=%) clean: $(LINKS) @rm -f $(SRC:%.ma=%.moo) @$(MATITACLEAN) all depend: $(DEPEND_NAME) %.moo:%.ma $(DEPEND_NAME) $(LINKS) @[ ! -e $@ ] || $(MATITACLEAN) $< @$(MATITAC) $< || $(MATITACLEAN) $< $(DEPEND_NAME): $(SRC) $(LINKS) @$(MATITADEP) $(SRC) > $@ # Let's prepare the environment .matita: @ln -s ../.matita . matita.lang: @ln -s ../matita.lang . matita.conf.xml: @ln -s ../matita.conf.xml . #done include $(DEPEND_NAME)