X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=doc%2FMakefile.am;h=2894e0deefd1f93f59e669c4842e1b7e28a14385;hb=8c784f82961c03c9e7d209a4249f2590cfaaf4c9;hp=550b6bf7ab8c2dc36033842dca527f03e1de0efa;hpb=cd783bf3545065a1a87f7a1c844376ebe0d7907c;p=gedcom-parse.git diff --git a/doc/Makefile.am b/doc/Makefile.am index 550b6bf..2894e0d 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -2,16 +2,17 @@ # $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 +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: - mkdir -p $(distdir)/images; - cp -p $(srcdir)/images/schema.obj $(srcdir)/images/schema.png \ - $(distdir)/images; - cd $(distdir); \ - 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