X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Ftemplate_makefile.in;h=ac3e1449829f36ae6dda5c85a7f7a02487588dba;hb=refs%2Ftags%2F0.4.95%407852;hp=726196373fc23a4567b474af8c47bd3698977716;hpb=d3743c95bc18632db962f3961b9a0ab2bb9a90b2;p=helm.git diff --git a/matita/template_makefile.in b/matita/template_makefile.in index 726196373..ac3e14498 100644 --- a/matita/template_makefile.in +++ b/matita/template_makefile.in @@ -1,4 +1,5 @@ -SRC=$(shell find @ROOT@ -name "*.ma" -a -type f | sed 's?^@ROOT@/??') +SRC=$(shell find @ROOT@ -name "*.ma" -a -type f) +SHORTSRC=$(echo $(SRC) | sed 's?^@ROOT@/??g') TODO=$(SRC:%.ma=%.mo) MATITA_FLAGS= @@ -16,7 +17,7 @@ all: $(TODO) clean: $(MATITACLEAN) $(MATITA_FLAGS) $(SRC) - rm -f $(TODO) + rm -f $(TODO) @DEPFILE@ %.moo: if [ -z "$<" ]; then \ @@ -26,9 +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@