X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Ftemplate_makefile.in;h=0b46f4864360f49c2e17bb903b2113efe367416e;hb=28acfd1782318702779811c36f5cafd3571ff6a6;hp=57f1301d57e9e265dc1aeaa68f3ca23ac930d063;hpb=7f2444c2670cadafddd8785b687ef312158376b0;p=helm.git diff --git a/matita/template_makefile.in b/matita/template_makefile.in index 57f1301d5..0b46f4864 100644 --- a/matita/template_makefile.in +++ b/matita/template_makefile.in @@ -19,10 +19,14 @@ clean: rm -f $(TODO) %.moo: - ($(MATITAC) $(MATITA_FLAGS) -q -I @ROOT@ $< | (grep -v "^make" || true)) + if [ -z "$<" ]; then \ + echo "missing dependencies for $@"; \ + else \ + $(MATITAC) $(MATITA_FLAGS) -q -I @ROOT@ $<; \ + fi @DEPFILE@ : $(SRC) - $(MATITADEP) $(MATITA_FLAGS) -I '@ROOT@' $^ 1> @DEPFILE@ + $(MATITADEP) $(MATITA_FLAGS) -I '@ROOT@' $^ 1> @DEPFILE@ 2>@DEPFILE@.errors # this is the depend for full targets like: # dir/dir/name.moo: dir/dir/name.ma dir/dep.moo