From: Peter Verthez Date: Fri, 16 Aug 2002 16:40:33 +0000 (+0000) Subject: Correction on new rule. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=32c4993af3691357e984189086d905871609ecdb;p=gedcom-parse.git Correction on new rule. --- diff --git a/Makefile.inc b/Makefile.inc index a8e17c7..dd724ba 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -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