]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/template_makefile.in
The two coercions sym_eq e eq_f gives BIG TROUBLES when checking composition during
[helm.git] / matita / template_makefile.in
index 0b46f4864360f49c2e17bb903b2113efe367416e..e61f757d6ee07412447adc0b3ba11aa5e8290a29 100644 (file)
@@ -1,4 +1,5 @@
 SRC=$(shell find @ROOT@ -name "*.ma" -a -type f)
+SHORTSRC=$(echo $(SRC) | sed 's?^@ROOT@/??g')
 TODO=$(SRC:%.ma=%.mo)
 
 MATITA_FLAGS=
@@ -12,7 +13,7 @@ MATITAC=@CC@
 MATITACLEAN=@CLEAN@
 MATITADEP=@DEP@
 
-all: $(TODO)
+all: $(TODO) 
 
 clean:
        $(MATITACLEAN) $(MATITA_FLAGS) $(SRC) 
@@ -26,8 +27,10 @@ clean:
        fi
 
 @DEPFILE@ : $(SRC)
-       $(MATITADEP) $(MATITA_FLAGS) -I '@ROOT@' $^ 1> @DEPFILE@ 2>@DEPFILE@.errors 
+       $(MATITADEP) $(MATITA_FLAGS) -I '@ROOT@' -dot @DEPFILE@.dot $^ \
+               1> @DEPFILE@ 2>@DEPFILE@.errors \
+               || (echo;cat @DEPFILE@.errors;echo;rm @DEPFILE@;false)
 
 # this is the depend for full targets like:
 # dir/dir/name.moo: dir/dir/name.ma dir/dep.moo
--include @DEPFILE@
+include @DEPFILE@