Moved gedcom_set_error_handling to interface.c to make conversion of docs
[gedcom-parse.git] / doc / Makefile.am
index 5bf8e7252a3f49409e7fe3b24bd4229e606be932..77f7634d5ce3b57b5e3b696f261f44697a41279e 100644 (file)
@@ -2,16 +2,20 @@
 # $Id$
 # $Name$
 
-SUBDIRS = images .
+SUBDIRS = images . doxygen
 DOC_FILES = index.html usage.html parser.html interface.html links.html \
-           encoding.html
-VERSIONED_FILES = index.html
-EXTRA_DIST = $(DOC_FILES)
+           encoding.html gom.html
+GENERATED_DOC_FILES = gomxref.html utf8tools.html
+DOC_GEN = make_gom_xref
+EXTRA_DIST = $(DOC_FILES) $(DOC_GEN) index.html.in $(GENERATED_DOC_FILES)
 docdir = $(datadir)/doc/@PACKAGE@-@VERSION@
+DISTCLEANFILES = $(GENERATED_DOC_FILES)
 
-include $(top_srcdir)/Makefile.inc
+doc_DATA = $(DOC_FILES) $(GENERATED_DOC_FILES)
 
-doc_DATA = $(DOC_FILES)
+gomxref.html:  $(srcdir)/../include/gom.h make_gom_xref
+       srcdir=$(srcdir); export srcdir; \
+        perl $(srcdir)/make_gom_xref
 
-dist-hook:
-       $(replace-VERSION)
+utf8tools.html:        $(srcdir)/../utf8/doc/utf8tools.html
+       cp $< $@