Pass the parsed tag value (integer format) together with the string value
[gedcom-parse.git] / include / Makefile.am
index 180b31f2ba0b52c965570a9db586d74f9b51db85..2ab50f68264836731190e607190beeadb13114ef 100644 (file)
@@ -1,4 +1,10 @@
 ## Process this file with automake to produce Makefile.in
 # $Id$
 # $Name$
-include_HEADERS = gedcom.h
+include_HEADERS = gedcom.h \
+                 gedcom-tags.h
+BUILT_SOURCES = gedcom-tags.h
+
+gedcom-tags.h: $(srcdir)/../gedcom/gedcom.tab.h
+       cat $(srcdir)/../gedcom/gedcom.tab.h | grep "TAG_\|USERTAG" > gedcom-tags.h
+