X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=Makefile.inc;h=dd724ba3fe1cf22ac74d16056f580cb6f11fadc0;hb=0fb72629410fb0a84045787b4078de9df753ee31;hp=a8e17c75fc46f4b0a44b05296e7448c6b214cbdb;hpb=d16249bdb641672de45a578543f962e9e8fb25f0;p=gedcom-parse.git 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