X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=Makefile.inc;h=fcd0a78bbd5948e01f8d6c493929b44e81cfb184;hb=341e99a17daad664c9cc611bfcdb1b7074390a08;hp=a8e17c75fc46f4b0a44b05296e7448c6b214cbdb;hpb=d16249bdb641672de45a578543f962e9e8fb25f0;p=gedcom-parse.git diff --git a/Makefile.inc b/Makefile.inc index a8e17c7..fcd0a78 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -12,12 +12,16 @@ define replace-VERSION endef %.tabgen.h: %.tab.h - if [ ! -r $@ ] ; \ + if [ ! -r $(srcdir)/$@ ] ; \ then \ - touch $@; \ + echo "Creating empty file for $@"; \ + touch $(srcdir)/$@; \ fi - if ! diff -q $< $@ > /dev/null; \ + if diff $< $(srcdir)/$@ > /dev/null 2>&1; \ then \ - rm $@; \ - cp $< $@; \ + : ; \ + else \ + echo "Updating $@"; \ + rm $(srcdir)/$@; \ + cp $(srcdir)/$< $(srcdir)/$@; \ fi