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=gdk-pixbuf.sgml
9 # The directory containing the source code (if it contains documentation).
10 DOC_SOURCE_DIR=$(GDK_PIXBUF_DIR)/gdk-pixbuf
12 CFLAGS=`gnome-config --cflags gnomeui gdk_pixbuf gnomecanvaspixbuf`
13 LDFLAGS=`gnome-config --libs gnomeui gdk_pixbuf gnomecanvaspixbuf`
15 HTML_DIR=$(datadir)/gnome/html
17 TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)
22 tmpl/file-loading.sgml \
23 tmpl/from-drawables.sgml \
24 tmpl/gdk-pixbuf-loader.sgml \
25 tmpl/gdk-pixbuf-unused.sgml \
26 tmpl/gdk-pixbuf.sgml \
27 tmpl/gnome-canvas-pixbuf.sgml \
28 tmpl/refcounting.sgml \
33 gdk_pixbuf_docdir = $(HTML_DIR)
34 gdk_pixbuf_doc_DATA = \
36 gdk-pixbuf.hierarchy \
39 gdk-pixbuf-sections.txt
46 $(gdk_pixbuf_doc_DATA) \
50 gdk-pixbuf.html: html/book1.html
51 -cd $(srcdir) && cp html/book1.html gdk-pixbuf.html
56 html/book1.html: sgml/gdk-pixbuf-doc.bottom $(content_files)
59 sgml/gdk-pixbuf-doc.bottom: $(tmpl_sources)
64 && env CFLAGS=$(CFLAGS) LDFLAGS=$(LDFLAGS) \
65 gtkdoc-scanobj --module=$(DOC_MODULE) \
66 && gtkdoc-scan --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --ignore-headers="pixops.h pixops-internal.h" )
69 cd $(srcdir) && gtkdoc-mktmpl --module=$(DOC_MODULE)
73 && gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR)
76 test -d $(srcdir)/html || mkdir $(srcdir)/html
77 -cd $(srcdir)/html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
80 rm -f *~ *.bak *.signals *-unused.txt
82 maintainer-clean-local: clean
83 cd $(srcdir) && rm -rf sgml html $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
86 $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
87 (installfiles=`echo $(srcdir)/html/*.html`; \
88 if test "$$installfiles" = '$(srcdir)/html/*.html'; \
89 then echo '-- Nothing to install' ; \
91 for i in $$installfiles; do \
92 echo '-- Installing '$$i ; \
93 $(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR); \
95 echo '-- Installing $(srcdir)/html/index.sgml' ; \
96 $(INSTALL_DATA) $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR); \
97 echo '-- Fixing Crossreferences' ; \
98 gtkdoc-fixxref --module=$(DOC_MODULE) --html-dir=$(HTML_DIR)|| true; \
102 mkdir $(distdir)/html
103 mkdir $(distdir)/sgml
104 mkdir $(distdir)/tmpl
105 -cp $(srcdir)/html/*.html $(srcdir)/html/*.css $(distdir)/html
106 -cp $(srcdir)/tmpl/*.sgml $(distdir)/tmpl
107 -cp $(srcdir)/sgml/*.sgml $(distdir)/sgml
108 -cp $(srcdir)/sgml/*.bottom $(srcdir)/sgml/*.top $(distdir)/sgml
110 .PHONY : html sgml templates scan