X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;ds=sidebyside;f=Makefile.inc;fp=Makefile.inc;h=a8e17c75fc46f4b0a44b05296e7448c6b214cbdb;hb=d16249bdb641672de45a578543f962e9e8fb25f0;hp=f86ad01d7b2867f6d5869c446567a5b52557c61a;hpb=39f76894fd10baca98de8b91dcf98a0b8d4997c8;p=gedcom-parse.git diff --git a/Makefile.inc b/Makefile.inc index f86ad01..a8e17c7 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -1,4 +1,4 @@ -## File to include in other Makefile's, defining common commands +## File to include in other Makefile's, defining common commands and rules # $Id$ # $Name$ @@ -10,3 +10,14 @@ define replace-VERSION mv $$file.new $$file; \ done endef + +%.tabgen.h: %.tab.h + if [ ! -r $@ ] ; \ + then \ + touch $@; \ + fi + if ! diff -q $< $@ > /dev/null; \ + then \ + rm $@; \ + cp $< $@; \ + fi