X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=docs%2Freference%2Fglib%2FMakefile.am;h=d6eb74ee19171dbcb82a58611cf202bf39701c34;hb=0196d639753247cb0d8aca289155154ef6daa561;hp=0c4da6277db6def253e37bf524d8ae10d39e4b42;hpb=d1bbb7f07fb237a8df5519bed4c7fb424f69d2ae;p=platform%2Fupstream%2Fglib.git diff --git a/docs/reference/glib/Makefile.am b/docs/reference/glib/Makefile.am index 0c4da62..d6eb74e 100644 --- a/docs/reference/glib/Makefile.am +++ b/docs/reference/glib/Makefile.am @@ -1,4 +1,5 @@ ## Process this file with automake to produce Makefile.in +AUTOMAKE_OPTIONS = 1.6 # The name of the module. DOC_MODULE=glib @@ -6,42 +7,91 @@ DOC_MODULE=glib # The top-level SGML file. DOC_MAIN_SGML_FILE=glib-docs.sgml +# Extra options to supply to gtkdoc-scan +SCAN_OPTIONS=--deprecated-guards="G_DISABLE_DEPRECATED" -TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE) +# The directory containing the source code. Relative to $(srcdir) +DOC_SOURCE_DIR=../../.. -scan: - gtkdoc-scan --module=$(DOC_MODULE) `glib-config --prefix`/include/glib.h `glib-config --prefix`/include/gmodule.h `glib-config --prefix`/lib/glib/include/glibconfig.h +# Used for dependencies +HFILE_GLOB=$(top_srcdir)/glib/*.h $(top_srcdir)/gmodule/*.h +CFILE_GLOB=$(top_srcdir)/glib/*.c $(top_srcdir)/gmodule/*.c -templates: scan - gtkdoc-mktmpl --module=$(DOC_MODULE) +# Headers to ignore +IGNORE_HFILES= \ + build \ + gobject \ + config.h \ + gdatasetprivate.h \ + glibintl.h \ + gbsearcharray.h \ + gmoduleconf.h \ + gunibreak.h \ + gunicomp.h \ + gunidecomp.h \ + gunichartables.h \ + glibconfig-sysdefs.h \ + gdebug.h \ + gprintfint.h \ + galias.h \ + gmirroringtable.h \ + gscripttable.h \ + glib-mirroring-tab \ + gnulib \ + pcre \ + update-pcre -sgml: - gtkdoc-mkdb --module=$(DOC_MODULE) +# Extra options to supply to gtkdoc-mkdb +MKDB_OPTIONS=--sgml-mode --output-format=xml --ignore-files=trio -html: - if ! test -d html ; then mkdir html ; fi - -cd html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE) +# Images to copy into HTML directory +HTML_IMAGES = \ + file-name-encodings.png \ + mainloop-states.gif -clean-local: - rm -f *~ *.bak *.hierarchy *.signals *.args *-unused.txt +# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE) +content_files = \ + cross.sgml \ + running.sgml \ + building.sgml \ + changes.sgml \ + compiling.sgml \ + resources.sgml \ + regex-syntax.sgml \ + version.xml \ + glib-gettextize.xml -maintainer-clean-local: clean - rm -rf sgml html $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt +# Extra options to supply to gtkdoc-fixref +FIXXREF_OPTIONS= -install-data-local: - install -d -m 0755 $(TARGET_DIR) - install -m 0644 html/*.html $(TARGET_DIR) - install -m 0644 html/index.sgml $(TARGET_DIR) - gtkdoc-fixxref --module=$(DOC_MODULE) --html-dir=$(HTML_DIR) +# include common portion ... +include $(top_srcdir)/gtk-doc.make -EXTRA_DIST = \ - $(DOC_MAIN_SGML_FILE) \ - $(DOC_MODULE)-sections.txt \ - glib-decl.txt \ - glib-overrides.txt +# Other files to distribute +EXTRA_DIST += \ + file-name-encodings.png \ + file-name-encodings.sxd \ + mainloop-states.fig \ + mainloop-states.png \ + mainloop-states.eps \ + version.xml.in -dist-hook: - mkdir $(distdir)/tmpl - cp -p tmpl/*.sgml $(distdir)/tmpl +######################################################################## + +man_MANS = glib-gettextize.1 + +if ENABLE_MAN + +%.1 : %.xml + @XSLTPROC@ -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< + +endif + +BUILT_EXTRA_DIST = $(man_MANS) + +dist-hook-local: $(BUILT_EXTRA_DIST) + files='$(BUILT_EXTRA_DIST)'; \ + for f in $$files; do \ + if test -f $$f; then d=.; else d=$(srcdir); fi; \ + cp $$d/$$f $(distdir) || exit 1; done -.PHONY : html sgml templates scan