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