]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/template_makefile.in
Bug fixing. If the inductive types do not occur in t, t is
[helm.git] / matita / template_makefile.in
index d24c75b0ff36858fa85c02248929546a73af01bd..0b46f4864360f49c2e17bb903b2113efe367416e 100644 (file)
@@ -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