dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
gedcom-parse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd701e0
)
Don't include Makefile.inc: add specific rule here (portability).
author
Peter Verthez
<Peter.Verthez@advalvas.be>
Sun, 13 Oct 2002 15:28:55 +0000
(15:28 +0000)
committer
Peter Verthez
<Peter.Verthez@advalvas.be>
Sun, 13 Oct 2002 15:28:55 +0000
(15:28 +0000)
gedcom/Makefile.am
patch
|
blob
|
history
diff --git
a/gedcom/Makefile.am
b/gedcom/Makefile.am
index 1f24dbb89608eaa3285362f43bee6021cfd97e77..aa33f87832862d291a379278f5998e295e1c3982 100644
(file)
--- a/
gedcom/Makefile.am
+++ b/
gedcom/Makefile.am
@@
-56,8
+56,6
@@
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_ $<
@@
-100,3
+98,14
@@
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