X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=doc%2FMakefile.am;h=0458a2f24e47386631f895ecca940584c569417f;hb=f8f253aa29e3c2561d325cb47cc17a727f76266e;hp=bf5b2107d74f33463ae8c3532ed4158cc4ea3f58;hpb=c7ca99c0b3b01d83c0d8e695d9e4114567d288a3;p=gedcom-parse.git diff --git a/doc/Makefile.am b/doc/Makefile.am index bf5b210..0458a2f 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -2,15 +2,20 @@ # $Id$ # $Name$ -EXTRA_DIST = index.html usage.html parser.html interface.html links.html -VERSIONED_FILES = index.html +SUBDIRS = images . +DOC_FILES = index.html usage.html parser.html interface.html links.html \ + 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) -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 +doc_DATA = $(DOC_FILES) $(GENERATED_DOC_FILES) + +gomxref.html: $(srcdir)/../include/gom.h make_gom_xref + srcdir=$(srcdir); export srcdir; \ + perl $(srcdir)/make_gom_xref + +utf8tools.html: $(srcdir)/../utf8/doc/utf8tools.html + cp $< $@