Show which CVS element is used to generate the HTML file.
[gedcom-parse.git] / doc / Makefile.am
index bf5b2107d74f33463ae8c3532ed4158cc4ea3f58..166d5e6a8bd84bdce5a54caa6a9c2afa2c2aa343 100644 (file)
@@ -2,15 +2,20 @@
 # $Id$
 # $Name$
 
-EXTRA_DIST = index.html usage.html parser.html interface.html links.html
+SUBDIRS = images .
+DOC_FILES = index.html usage.html parser.html interface.html links.html \
+           encoding.html gomxref.html
 VERSIONED_FILES = index.html
+EXTRA_DIST = $(DOC_FILES)
+docdir = $(datadir)/doc/@PACKAGE@-@VERSION@
+
+include $(top_srcdir)/Makefile.inc
+
+doc_DATA = $(DOC_FILES)
 
 dist-hook:
-       @cd $(distdir); \
-       mkdir images
-       cp -p $(srcdir)/images/schema.obj $(srcdir)/images/schema.png images \
-       for file in $(VERSIONED_FILES); do \
-          sed 's/\@VERSION\@/${VERSION}/' $$file > $$file.new; \
-         rm $$file; \
-         mv $$file.new $$file; \
-       done
+       $(replace-VERSION)
+
+gomxref.html:  $(srcdir)/../include/gom.h
+       srcdir=$(srcdir); export srcdir; \
+        ./make_gom_xref