annotate Makefile @ 3145:0aaad77951c7 trunk

Treating cdda:// as a regular file is bad, hmmkay? This is just a hack and nenolod will improve on it later.
author Tony Vroon <chainsaw@gentoo.org>
date Mon, 23 Jul 2007 01:01:43 +0100
parents 774cc92d936e
children 9ddf21ab5c84
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1207
c461cb49fc55 [svn] - if mk/rules.mk is missing, run configure to generate it (hopefully you are running the posix target, otherwise I feel sorry for you)
nenolod
parents: 1206
diff changeset
1 .SILENT:
c461cb49fc55 [svn] - if mk/rules.mk is missing, run configure to generate it (hopefully you are running the posix target, otherwise I feel sorry for you)
nenolod
parents: 1206
diff changeset
2
1693
8d7f4260022d [svn] * One more .cpp -> .cxx
js
parents: 1615
diff changeset
3 include mk/rules.mk
1615
e402e0217870 [svn] - fix for the long-standing dependency oddness in our build system. now make tool surely picks up changed source files and builds required objectives.
yaz
parents: 1451
diff changeset
4 include mk/init.mk
1206
44d8008500a3 [svn] - core makefile
nenolod
parents:
diff changeset
5
2323
a7a52cbc08fc [svn] - move manpages to subdir man/
nenolod
parents: 2313
diff changeset
6 SUBDIRS = src man po icons skins
1206
44d8008500a3 [svn] - core makefile
nenolod
parents:
diff changeset
7
1615
e402e0217870 [svn] - fix for the long-standing dependency oddness in our build system. now make tool surely picks up changed source files and builds required objectives.
yaz
parents: 1451
diff changeset
8 include mk/objective.mk
e402e0217870 [svn] - fix for the long-standing dependency oddness in our build system. now make tool surely picks up changed source files and builds required objectives.
yaz
parents: 1451
diff changeset
9
1206
44d8008500a3 [svn] - core makefile
nenolod
parents:
diff changeset
10 install-posthook:
44d8008500a3 [svn] - core makefile
nenolod
parents:
diff changeset
11 @if test `whoami` = 'root' && test -z "$(DESTDIR)"; then \
1695
3cf80d8a6d8d [svn] - Removed .cpp.o target since we don't have any .cpp files anymore.
js
parents: 1693
diff changeset
12 echo; \
3cf80d8a6d8d [svn] - Removed .cpp.o target since we don't have any .cpp files anymore.
js
parents: 1693
diff changeset
13 echo "WARNING:"; \
3cf80d8a6d8d [svn] - Removed .cpp.o target since we don't have any .cpp files anymore.
js
parents: 1693
diff changeset
14 echo "On some systems, it might be required that you run"; \
3cf80d8a6d8d [svn] - Removed .cpp.o target since we don't have any .cpp files anymore.
js
parents: 1693
diff changeset
15 echo "ldconfig. However, this isn't done automatically"; \
3cf80d8a6d8d [svn] - Removed .cpp.o target since we don't have any .cpp files anymore.
js
parents: 1693
diff changeset
16 echo "because some ldconfig versions might break the system"; \
3cf80d8a6d8d [svn] - Removed .cpp.o target since we don't have any .cpp files anymore.
js
parents: 1693
diff changeset
17 echo "if it's called without any parameters."; \
1206
44d8008500a3 [svn] - core makefile
nenolod
parents:
diff changeset
18 fi
44d8008500a3 [svn] - core makefile
nenolod
parents:
diff changeset
19
44d8008500a3 [svn] - core makefile
nenolod
parents:
diff changeset
20 OBJECTIVE_DATA = \
3114
774cc92d936e Add a pkg-config for audclient.
William Pitcock <nenolod@atheme-project.org>
parents: 2419
diff changeset
21 audacious.pc:$(LIBDIR)/pkgconfig \
774cc92d936e Add a pkg-config for audclient.
William Pitcock <nenolod@atheme-project.org>
parents: 2419
diff changeset
22 audclient.pc:$(LIBDIR)/pkgconfig
1615
e402e0217870 [svn] - fix for the long-standing dependency oddness in our build system. now make tool surely picks up changed source files and builds required objectives.
yaz
parents: 1451
diff changeset
23
2033
34299070db29 [svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents: 1879
diff changeset
24 build-posthook:
34299070db29 [svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents: 1879
diff changeset
25 @( \
34299070db29 [svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents: 1879
diff changeset
26 echo; \
2409
30ab29ed32d8 [svn] - back out objective-make topdir probe stuff, it doesnt work on some
nenolod
parents: 2391
diff changeset
27 echo "Now type '$(MAKE) documentation-build' to build the audacious SDK docs."; \
2033
34299070db29 [svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents: 1879
diff changeset
28 echo "This will require GTK-DOC to be installed."; \
34299070db29 [svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents: 1879
diff changeset
29 echo; \
34299070db29 [svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents: 1879
diff changeset
30 );
34299070db29 [svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents: 1879
diff changeset
31
34299070db29 [svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents: 1879
diff changeset
32 documentation-build:
34299070db29 [svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents: 1879
diff changeset
33 ( \
34299070db29 [svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents: 1879
diff changeset
34 if [ ! -d doc ]; then \
34299070db29 [svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents: 1879
diff changeset
35 mkdir -p doc/libaudacious/xml; \
34299070db29 [svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents: 1879
diff changeset
36 mkdir -p doc/audacious/xml; \
34299070db29 [svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents: 1879
diff changeset
37 fi; \
2054
a98e05ffcf07 [svn] - make documentation build on ubuntu
nenolod
parents: 2033
diff changeset
38 cd doc/libaudacious; \
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents: 2054
diff changeset
39 gtkdoc-scan --module=libaudacious --source-dir=../../src/libaudacious; \
2054
a98e05ffcf07 [svn] - make documentation build on ubuntu
nenolod
parents: 2033
diff changeset
40 cd ../..; \
a98e05ffcf07 [svn] - make documentation build on ubuntu
nenolod
parents: 2033
diff changeset
41 cd doc/audacious; \
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents: 2054
diff changeset
42 gtkdoc-scan --module=audacious --source-dir=../../src/audacious --ignore-headers=intl; \
2054
a98e05ffcf07 [svn] - make documentation build on ubuntu
nenolod
parents: 2033
diff changeset
43 cd ../..; \
a98e05ffcf07 [svn] - make documentation build on ubuntu
nenolod
parents: 2033
diff changeset
44 cd doc/libaudacious; \
2033
34299070db29 [svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents: 1879
diff changeset
45 gtkdoc-mktmpl --module=libaudacious; \
2054
a98e05ffcf07 [svn] - make documentation build on ubuntu
nenolod
parents: 2033
diff changeset
46 cd ../..; \
a98e05ffcf07 [svn] - make documentation build on ubuntu
nenolod
parents: 2033
diff changeset
47 cd doc/audacious; \
2033
34299070db29 [svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents: 1879
diff changeset
48 gtkdoc-mktmpl --module=audacious; \
2054
a98e05ffcf07 [svn] - make documentation build on ubuntu
nenolod
parents: 2033
diff changeset
49 cd ../..; \
a98e05ffcf07 [svn] - make documentation build on ubuntu
nenolod
parents: 2033
diff changeset
50 cd doc/libaudacious; \
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents: 2054
diff changeset
51 gtkdoc-mkdb --module=libaudacious --source-dir=../../src/libaudacious/ --output-format=xml --main-sgml-file=xml/libaudacious-main.sgml; \
2054
a98e05ffcf07 [svn] - make documentation build on ubuntu
nenolod
parents: 2033
diff changeset
52 cd ../..; \
a98e05ffcf07 [svn] - make documentation build on ubuntu
nenolod
parents: 2033
diff changeset
53 cd doc/audacious; \
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents: 2054
diff changeset
54 gtkdoc-mkdb --module=audacious --source-dir=../../src/audacious/ --ignore-files=intl --output-format=xml --main-sgml-file=xml/audacious-main.sgml; \
2054
a98e05ffcf07 [svn] - make documentation build on ubuntu
nenolod
parents: 2033
diff changeset
55 cd ../..; \
2033
34299070db29 [svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents: 1879
diff changeset
56 rm -rf doc/libaudacious/html; \
34299070db29 [svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents: 1879
diff changeset
57 mkdir -p doc/libaudacious/html; \
34299070db29 [svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents: 1879
diff changeset
58 rm -rf doc/audacious/html; \
34299070db29 [svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents: 1879
diff changeset
59 mkdir -p doc/audacious/html; \
2054
a98e05ffcf07 [svn] - make documentation build on ubuntu
nenolod
parents: 2033
diff changeset
60 cd doc/libaudacious/html; \
2033
34299070db29 [svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents: 1879
diff changeset
61 gtkdoc-mkhtml libaudacious ../libaudacious-main.sgml; \
2054
a98e05ffcf07 [svn] - make documentation build on ubuntu
nenolod
parents: 2033
diff changeset
62 cd ../../..; \
a98e05ffcf07 [svn] - make documentation build on ubuntu
nenolod
parents: 2033
diff changeset
63 cd doc/audacious/html; \
2033
34299070db29 [svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents: 1879
diff changeset
64 rm ../xml/xml; \
34299070db29 [svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents: 1879
diff changeset
65 ln -sf ../xml ../xml/xml; \
34299070db29 [svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents: 1879
diff changeset
66 gtkdoc-mkhtml audacious ../xml/audacious-main.sgml; \
2054
a98e05ffcf07 [svn] - make documentation build on ubuntu
nenolod
parents: 2033
diff changeset
67 cd ../../..; \
2033
34299070db29 [svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents: 1879
diff changeset
68 echo; \
34299070db29 [svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents: 1879
diff changeset
69 echo "The audacious SDK documentation was built successfully in doc/."; \
34299070db29 [svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents: 1879
diff changeset
70 echo; \
34299070db29 [svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents: 1879
diff changeset
71 );