Mercurial > audlegacy
comparison Makefile @ 3535:9ddf21ab5c84 trunk
Transit to Mk2.
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Mon, 17 Sep 2007 13:10:19 -0500 |
parents | 774cc92d936e |
children | 625af2797f35 |
comparison
equal
deleted
inserted
replaced
3534:10990786a090 | 3535:9ddf21ab5c84 |
---|---|
1 .SILENT: | 1 DISTCLEAN = extra.mk |
2 | 2 |
3 include mk/rules.mk | 3 include buildsys.mk |
4 include mk/init.mk | |
5 | 4 |
6 SUBDIRS = src man po icons skins | 5 SUBDIRS = src man po icons skins |
7 | |
8 include mk/objective.mk | |
9 | |
10 install-posthook: | |
11 @if test `whoami` = 'root' && test -z "$(DESTDIR)"; then \ | |
12 echo; \ | |
13 echo "WARNING:"; \ | |
14 echo "On some systems, it might be required that you run"; \ | |
15 echo "ldconfig. However, this isn't done automatically"; \ | |
16 echo "because some ldconfig versions might break the system"; \ | |
17 echo "if it's called without any parameters."; \ | |
18 fi | |
19 | 6 |
20 OBJECTIVE_DATA = \ | 7 OBJECTIVE_DATA = \ |
21 audacious.pc:$(LIBDIR)/pkgconfig \ | 8 audacious.pc:$(LIBDIR)/pkgconfig \ |
22 audclient.pc:$(LIBDIR)/pkgconfig | 9 audclient.pc:$(LIBDIR)/pkgconfig |
23 | 10 |
24 build-posthook: | 11 install-extra: |
25 @( \ | 12 y="audacious.pc audclient.pc"; \ |
26 echo; \ | 13 for i in $$y; do \ |
27 echo "Now type '$(MAKE) documentation-build' to build the audacious SDK docs."; \ | 14 ${INSTALL_STATUS}; \ |
28 echo "This will require GTK-DOC to be installed."; \ | 15 if ${MKDIR_P} ${DESTDIR}${libdir}/pkgconfig && ${INSTALL} -m 644 $$i ${DESTDIR}${libdir}/pkgconfig/$$i; then \ |
29 echo; \ | 16 ${INSTALL_OK}; \ |
30 ); | 17 else \ |
18 ${INSTALL_FAILED}; \ | |
19 fi; \ | |
20 done | |
31 | 21 |
32 documentation-build: | 22 uninstall-extra: |
33 ( \ | 23 y="audacious.pc audclient.pc"; \ |
34 if [ ! -d doc ]; then \ | 24 for i in $$y; do \ |
35 mkdir -p doc/libaudacious/xml; \ | 25 if [ -f ${DESTDIR}${libdir}/pkgconfig/$$i ]; then \ |
36 mkdir -p doc/audacious/xml; \ | 26 if rm -f ${DESTDIR}${libdir}/pkgconfig/$$i; then \ |
27 ${DELETE_OK}; \ | |
28 else \ | |
29 ${DELETE_FAILED}; \ | |
30 fi \ | |
37 fi; \ | 31 fi; \ |
38 cd doc/libaudacious; \ | 32 done |
39 gtkdoc-scan --module=libaudacious --source-dir=../../src/libaudacious; \ | |
40 cd ../..; \ | |
41 cd doc/audacious; \ | |
42 gtkdoc-scan --module=audacious --source-dir=../../src/audacious --ignore-headers=intl; \ | |
43 cd ../..; \ | |
44 cd doc/libaudacious; \ | |
45 gtkdoc-mktmpl --module=libaudacious; \ | |
46 cd ../..; \ | |
47 cd doc/audacious; \ | |
48 gtkdoc-mktmpl --module=audacious; \ | |
49 cd ../..; \ | |
50 cd doc/libaudacious; \ | |
51 gtkdoc-mkdb --module=libaudacious --source-dir=../../src/libaudacious/ --output-format=xml --main-sgml-file=xml/libaudacious-main.sgml; \ | |
52 cd ../..; \ | |
53 cd doc/audacious; \ | |
54 gtkdoc-mkdb --module=audacious --source-dir=../../src/audacious/ --ignore-files=intl --output-format=xml --main-sgml-file=xml/audacious-main.sgml; \ | |
55 cd ../..; \ | |
56 rm -rf doc/libaudacious/html; \ | |
57 mkdir -p doc/libaudacious/html; \ | |
58 rm -rf doc/audacious/html; \ | |
59 mkdir -p doc/audacious/html; \ | |
60 cd doc/libaudacious/html; \ | |
61 gtkdoc-mkhtml libaudacious ../libaudacious-main.sgml; \ | |
62 cd ../../..; \ | |
63 cd doc/audacious/html; \ | |
64 rm ../xml/xml; \ | |
65 ln -sf ../xml ../xml/xml; \ | |
66 gtkdoc-mkhtml audacious ../xml/audacious-main.sgml; \ | |
67 cd ../../..; \ | |
68 echo; \ | |
69 echo "The audacious SDK documentation was built successfully in doc/."; \ | |
70 echo; \ | |
71 ); |