X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2Ftemplate_makefile.in;h=7c5a40b31381736ce69c7cbab4f668ccf30f4be7;hb=13c3d9ad1305b757a7c0023e629d26d0a6b1ca9f;hp=0b46f4864360f49c2e17bb903b2113efe367416e;hpb=baf08c7b03fd7251a342569a1b25cf7f5792b21e;p=helm.git diff --git a/helm/software/matita/template_makefile.in b/helm/software/matita/template_makefile.in index 0b46f4864..7c5a40b31 100644 --- a/helm/software/matita/template_makefile.in +++ b/helm/software/matita/template_makefile.in @@ -1,4 +1,4 @@ -SRC=$(shell find @ROOT@ -name "*.ma" -a -type f) +SRC=$(shell find @ROOT@ -name "*.ma" -a -type f | sed 's?^@ROOT@/??') TODO=$(SRC:%.ma=%.mo) MATITA_FLAGS= @@ -12,7 +12,7 @@ MATITAC=@CC@ MATITACLEAN=@CLEAN@ MATITADEP=@DEP@ -all: $(TODO) +all: $(TODO) clean: $(MATITACLEAN) $(MATITA_FLAGS) $(SRC) @@ -26,7 +26,9 @@ 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