From 9cd95ba4575b0671c49d9da10e886bc9aa7be0d9 Mon Sep 17 00:00:00 2001 From: Claudio Sacerdoti Coen Date: Fri, 1 Jul 2005 16:00:53 +0000 Subject: [PATCH] Makefile improved --- helm/matita/library/Makefile | 42 +++++++++++++++++------------------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/helm/matita/library/Makefile b/helm/matita/library/Makefile index 4df43ba60..24417790f 100644 --- a/helm/matita/library/Makefile +++ b/helm/matita/library/Makefile @@ -1,23 +1,30 @@ -TODO=\ - bool.moo\ - compare.moo\ - equality.moo\ - logic.moo\ - nat.moo \ - Z.moo +SRC=\ + bool.ma\ + compare.ma\ + equality.ma\ + logic.ma\ + nat.ma \ + Z.ma DEPEND_NAME=.depend +LINKS=.matita matita.lang matita.conf.xml -all: links $(TODO) +all: $(LINKS) $(SRC:%.ma=%.moo) -clean: - rm -f $(DEPEND_NAME) $(TODO) +clean: $(LINKS) + rm -f $(SRC:%.ma=%.moo) ../matitaclean all -# Let's prepare the environment -links: .matita matita.lang matita.conf.xml -.PHONY: links +depend: $(DEPEND_NAME) +%.moo:%.ma depend $(LINKS) + [ ! -e $@ ] || ../matitaclean $< + ../matitac $< || ../matitaclean $< + +$(DEPEND_NAME): $(SRC) $(LINKS) + ../matitadep $(SRC) > $@ + +# Let's prepare the environment .matita: ln -s ../.matita . @@ -28,13 +35,4 @@ matita.conf.xml: ln -s ../matita.conf.xml . #done -depend: $(DEPEND_NAME) - -%.moo:%.ma - [ ! -e $@ ] || ../matitaclean $< - ../matitac $< || ../matitaclean $< - -$(DEPEND_NAME): $(TODO:%.moo=%.ma) - ../matitadep $^ > $@ - include $(DEPEND_NAME) -- 2.39.2