X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Ftemplate_makefile.in;h=0b46f4864360f49c2e17bb903b2113efe367416e;hb=8030b740ba0b84df1ae3a3e5878b447f3e4ec874;hp=d24c75b0ff36858fa85c02248929546a73af01bd;hpb=5a99efb2b5eec9678f453345b9b70160b36ae6cf;p=helm.git diff --git a/matita/template_makefile.in b/matita/template_makefile.in index d24c75b0f..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@ $< + 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