X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=Makefile.inc;h=a9d0c878f5fac0f940ac283be1f475a9f90c4624;hb=8ed4abed4e6f6c4b3371d0bcab3f769a51bf1b52;hp=a8e17c75fc46f4b0a44b05296e7448c6b214cbdb;hpb=d16249bdb641672de45a578543f962e9e8fb25f0;p=gedcom-parse.git diff --git a/Makefile.inc b/Makefile.inc index a8e17c7..a9d0c87 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