X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Ftemplate_makefile.in;h=073efb8f45856bc87798d9a2785f3b203f23875b;hb=650e3b3c9ff0b9cafb76a0edf8139a53446937ba;hp=1413aedd91e28b53adc1aaf1e893e10987b28d4d;hpb=3e86f296f53e98401b281ce96fc7ba545dbd05b4;p=helm.git diff --git a/helm/matita/template_makefile.in b/helm/matita/template_makefile.in index 1413aedd9..073efb8f4 100644 --- a/helm/matita/template_makefile.in +++ b/helm/matita/template_makefile.in @@ -1,5 +1,5 @@ SRC=$(shell find @ROOT@ -name "*.ma" -a -type f) -TODO=$(SRC:%.ma=%.moo) +TODO=$(SRC:%.ma=%.mo) MATITAC=@CC@ MATITACLEAN=@CLEAN@ @@ -11,23 +11,12 @@ clean: $(MATITACLEAN) $(SRC) rm -f $(TODO) -%.moo:%.ma - [ ! -e $@ ] || ($(MATITACLEAN) $< 1>/dev/null 2>/dev/null ; rm -f $@) - ($(MATITAC) -preserve -q -I @ROOT@ $< | (grep -v "^make" || true)) || \ - ($(MATITACLEAN) $< ; exit 1) +%.moo: + ($(MATITAC) -q -I @ROOT@ $< | (grep -v "^make" || true)) -@DEPFILE@ @DEPFILESHORT@: $(SRC) - @DEP@ -I @ROOT@ $^ > @DEPFILE@ - >@DEPFILESHORT@ - for X in `cat @DEPFILE@ | cut -f 1 -d :`; do\ - TMP=`basename $$X | sed s/\.moo$$//`;\ - echo "$$TMP: $$X" >> @DEPFILESHORT@;\ - done +@DEPFILE@ : $(SRC) + @DEP@ -I '@ROOT@' $^ > @DEPFILE@ # this is the depend for full targets like: # dir/dir/name.moo: dir/dir/name.ma dir/dep.moo -include @DEPFILE@ - -# this is for short name targets like: -# name: dir/dir/name.moo --include @DEPFILESHORT@