1 ## Process this file with automake to produce Makefile.in
3 # The name of the module.
6 # The top-level SGML file.
7 DOC_MAIN_SGML_FILE=gtkhtml.sgml
9 # The directory containing the source code (if it contains documentation).
10 DOC_SOURCE_DIR=$(top_srcdir)/src
12 CFLAGS += $(EXTRA_GNOME_CFLAGS)
13 LDFLAGS += $(EXTRA_GNOME_LIBS)
15 HTML_DIR=$(datadir)/gnome/html
17 TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)
21 tmpl/gtkhtml-types.sgml \
22 tmpl/gtkhtml-enums.sgml \
23 tmpl/gtkhtml-embedded.sgml \
24 tmpl/gtkhtml-stream.sgml
27 gtkhtml_docdir = $(HTML_DIR)
29 $(DOC_MAIN_SGML_FILE) \
48 html/index.html: sgml/gtkhtml-doc.bottom $(content_files)
51 sgml/gtkhtml-doc.bottom: $(tmpl_sources)
56 && env CFLAGS="$(CFLAGS) -I$(top_srcdir)/src" LDFLAGS="$(LDFLAGS) -L$(top_srcdir) -lgtkhtml" \
57 gtkdoc-scanobj --module=$(DOC_MODULE) \
58 && gtkdoc-scan --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --ignore-headers="")
61 cd $(srcdir) && gtkdoc-mktmpl --module=$(DOC_MODULE)
65 && gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR)
68 test -d $(srcdir)/html || mkdir $(srcdir)/html
69 -cd $(srcdir)/html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
72 rm -f *~ *.bak *.signals *-unused.txt
74 maintainer-clean-local: clean
75 cd $(srcdir) && rm -rf sgml html $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
78 $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
79 (installfiles=`echo $(srcdir)/html/*.html`; \
80 if test "$$installfiles" = '$(srcdir)/html/*.html'; \
81 then echo '-- Nothing to install' ; \
83 for i in $$installfiles; do \
84 echo '-- Installing '$$i ; \
85 $(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR); \
87 echo '-- Installing $(srcdir)/html/index.sgml' ; \
88 $(INSTALL_DATA) $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR); \
89 echo '-- Fixing Crossreferences' ; \
90 gtkdoc-fixxref --module=$(DOC_MODULE) --html-dir=$(HTML_DIR)|| true; \
97 -cp $(srcdir)/html/*.html $(srcdir)/html/*.css $(distdir)/html
98 -cp $(srcdir)/tmpl/*.sgml $(distdir)/tmpl
99 -cp $(srcdir)/sgml/*.sgml $(distdir)/sgml
100 -cp $(srcdir)/sgml/*.bottom $(srcdir)/sgml/*.top $(distdir)/sgml
102 .PHONY : html sgml templates scan
104 -include $(top_srcdir)/git.mk