From ad172eb1cef732d748f9f9de192a30477a635932 Mon Sep 17 00:00:00 2001 From: Peter Verthez Date: Sun, 20 Oct 2002 14:55:16 +0000 Subject: [PATCH] Use Makefile.inc for *.tabgen.h. --- gedcom/Makefile.am | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/gedcom/Makefile.am b/gedcom/Makefile.am index 9c88264..8789136 100644 --- a/gedcom/Makefile.am +++ b/gedcom/Makefile.am @@ -56,6 +56,8 @@ EXTRA_DIST = gedcom.y \ gedcom_date.lex \ gedcom_lex_common.c +include $(top_srcdir)/Makefile.inc + gedcom.tab.c gedcom.tab.h: gedcom.y $(YACC) $(YFLAGS) --name-prefix=gedcom_ $< @@ -98,14 +100,3 @@ lex.gedcom_lohi_.test.o: lex.gedcom_lohi_.c clean-local: rm -f $(EXTRA_PROGRAMS) - -%.tabgen.h: %.tab.h - if [ ! -r $(srcdir)/$@ ] ; \ - then \ - touch $(srcdir)/$@; \ - fi - if ! diff -q $< $(srcdir)/$@ > /dev/null; \ - then \ - rm $(srcdir)/$@; \ - cp $(srcdir)/$< $(srcdir)/$@; \ - fi -- 2.30.2