comparison Makefile @ 2033:34299070db29 trunk

[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
author nenolod
date Sun, 03 Dec 2006 23:26:42 -0800
parents 104fe1a701b9
children a98e05ffcf07
comparison
equal deleted inserted replaced
2032:7aed5cf10141 2033:34299070db29
21 audacious.pc:$(LIBDIR)/pkgconfig \ 21 audacious.pc:$(LIBDIR)/pkgconfig \
22 audacious.1:$(mandir)/man1 \ 22 audacious.1:$(mandir)/man1 \
23 audtool.1:$(mandir)/man1 \ 23 audtool.1:$(mandir)/man1 \
24 audacious/audacious.desktop:$(datadir)/applications 24 audacious/audacious.desktop:$(datadir)/applications
25 25
26 build-posthook:
27 @( \
28 echo; \
29 echo "Now type '$(MAKE) documentation-build' to build the audacious SDK docs."; \
30 echo "This will require GTK-DOC to be installed."; \
31 echo; \
32 );
33
34 documentation-build:
35 ( \
36 if [ ! -d doc ]; then \
37 mkdir -p doc/libaudacious/xml; \
38 mkdir -p doc/audacious/xml; \
39 fi; \
40 pushd doc/libaudacious > /dev/null; \
41 gtkdoc-scan --module=libaudacious --source-dir=../../libaudacious; \
42 popd > /dev/null; \
43 pushd doc/audacious > /dev/null; \
44 gtkdoc-scan --module=audacious --source-dir=../../audacious --ignore-headers=intl; \
45 popd > /dev/null; \
46 pushd doc/libaudacious > /dev/null; \
47 gtkdoc-mktmpl --module=libaudacious; \
48 popd > /dev/null; \
49 pushd doc/audacious > /dev/null; \
50 gtkdoc-mktmpl --module=audacious; \
51 popd > /dev/null; \
52 pushd doc/libaudacious > /dev/null; \
53 gtkdoc-mkdb --module=libaudacious --source-dir=../../libaudacious/ --output-format=xml --main-sgml-file=xml/libaudacious-main.sgml; \
54 popd > /dev/null; \
55 pushd doc/audacious > /dev/null; \
56 gtkdoc-mkdb --module=audacious --source-dir=../../audacious/ --ignore-files=intl --output-format=xml --main-sgml-file=xml/audacious-main.sgml; \
57 popd > /dev/null; \
58 rm -rf doc/libaudacious/html; \
59 mkdir -p doc/libaudacious/html; \
60 rm -rf doc/audacious/html; \
61 mkdir -p doc/audacious/html; \
62 pushd doc/libaudacious/html > /dev/null; \
63 gtkdoc-mkhtml libaudacious ../libaudacious-main.sgml; \
64 popd > /dev/null; \
65 pushd doc/audacious/html > /dev/null; \
66 rm ../xml/xml; \
67 ln -sf ../xml ../xml/xml; \
68 gtkdoc-mkhtml audacious ../xml/audacious-main.sgml; \
69 popd > /dev/null; \
70 echo; \
71 echo "The audacious SDK documentation was built successfully in doc/."; \
72 echo; \
73 );