Correction on new rule.
authorPeter Verthez <Peter.Verthez@advalvas.be>
Fri, 16 Aug 2002 16:40:33 +0000 (16:40 +0000)
committerPeter Verthez <Peter.Verthez@advalvas.be>
Fri, 16 Aug 2002 16:40:33 +0000 (16:40 +0000)
Makefile.inc

index a8e17c75fc46f4b0a44b05296e7448c6b214cbdb..dd724ba3fe1cf22ac74d16056f580cb6f11fadc0 100644 (file)
@@ -12,12 +12,12 @@ define replace-VERSION
 endef
 
 %.tabgen.h:    %.tab.h
-       if [ ! -r $@ ] ; \
+       if [ ! -r $(srcdir)/$@ ] ; \
        then \
-         touch $@; \
+         touch $(srcdir)/$@; \
        fi
-       if ! diff -q $< $@ > /dev/null; \
+       if ! diff -q $< $(srcdir)/$@ > /dev/null; \
        then \
-         rm $@; \
-         cp $$@; \
+         rm $(srcdir)/$@; \
+         cp $(srcdir)/$< $(srcdir)/$@; \
        fi