# $Name$
SUBDIRS = images . doxygen html
-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)
-
-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 $< $@
+EXTRA_DIST = $(DOC_GEN)
SUBDIRS = images .
DOC_FILES = encoding.html interface.html
-DOC_FILES_PREFIXED := $(addprefix $(srcdir)/, $(DOC_FILES))
+GENERATED_DOC_FILES = utf8tools.html gomxref.html
+DOC_FILES_PREFIXED := $(addprefix $(srcdir)/, $(DOC_FILES) $(GENERATED_DOC_FILES))
+
ALL_HTML_FILES := $(wildcard $(srcdir)/*.html)
-GENERATED_DOC_FILES := $(filter-out $(DOC_FILES_PREFIXED), $(ALL_HTML_FILES))
-GENERATED_EXTRA_FILES = doxygen.css $(wildcard $(srcdir)/*.png)
+DOXYGEN_FILES := $(filter-out $(DOC_FILES_PREFIXED), $(ALL_HTML_FILES))
+DOXYGEN_EXTRA_FILES = doxygen.css $(wildcard $(srcdir)/*.png)
-EXTRA_DIST = $(ALL_HTML_FILES) $(GENERATED_EXTRA_FILES) utf8tools.html
+EXTRA_DIST = $(ALL_HTML_FILES) $(DOXYGEN_EXTRA_FILES)
docdir = $(datadir)/doc/@PACKAGE@-@VERSION@
-DISTCLEANFILES = $(GENERATED_DOC_FILES) $(GENERATED_EXTRA_FILES)
+DISTCLEANFILES = $(DOXYGEN_FILES) $(DOXYGEN_EXTRA_FILES) $(GENERATED_DOC_FILES)
+
+doc_DATA = $(DOXYGEN_FILES) $(DOXYGEN_EXTRA_FILES) $(DOC_FILES) \
+ $(GENERATED_DOC_FILES)
-# doc_DATA = $(ALL_HTML_FILES) $(GENERATED_EXTRA_FILES)
+gomxref.html: $(srcdir)/../../include/gom.h $(srcdir)/../make_gom_xref
+ srcdir=$(srcdir); export srcdir; \
+ perl $(srcdir)/../make_gom_xref $(srcdir)/../../include/gom.h
utf8tools.html: $(srcdir)/../../utf8/doc/utf8tools.html
cp $< $@