Mercurial > audlegacy
annotate Makefile @ 2052:5e7744e13f19 trunk
[svn] - what the hell is this, and why do we need it?
author | nenolod |
---|---|
date | Mon, 04 Dec 2006 02:18:02 -0800 |
parents | 34299070db29 |
children | a98e05ffcf07 |
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 | 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 | 5 |
1875
eae19233a2ab
[svn] - only attempt to build the intl objective if INTL_OBJECTIVE is defined.
nenolod
parents:
1827
diff
changeset
|
6 SUBDIRS = libaudacious $(INTL_OBJECTIVE) $(SUBDIR_GUESS) audacious audtool po icons skins |
1206 | 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 | 10 install-posthook: |
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 | 18 fi |
19 | |
20 OBJECTIVE_DATA = \ | |
21 audacious.pc:$(LIBDIR)/pkgconfig \ | |
22 audacious.1:$(mandir)/man1 \ | |
1879
104fe1a701b9
[svn] - add audtool(1) manpage; mostly written by Kiyoshi Aman.
nenolod
parents:
1875
diff
changeset
|
23 audtool.1:$(mandir)/man1 \ |
1206 | 24 audacious/audacious.desktop:$(datadir)/applications |
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
|
25 |
2033
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
26 build-posthook: |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
27 @( \ |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
28 echo; \ |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
29 echo "Now type '$(MAKE) documentation-build' to build the audacious SDK docs."; \ |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
30 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
|
31 echo; \ |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
32 ); |
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 documentation-build: |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
35 ( \ |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
36 if [ ! -d doc ]; then \ |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
37 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
|
38 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
|
39 fi; \ |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
40 pushd doc/libaudacious > /dev/null; \ |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
41 gtkdoc-scan --module=libaudacious --source-dir=../../libaudacious; \ |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
42 popd > /dev/null; \ |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
43 pushd doc/audacious > /dev/null; \ |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
44 gtkdoc-scan --module=audacious --source-dir=../../audacious --ignore-headers=intl; \ |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
45 popd > /dev/null; \ |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
46 pushd doc/libaudacious > /dev/null; \ |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
47 gtkdoc-mktmpl --module=libaudacious; \ |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
48 popd > /dev/null; \ |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
49 pushd doc/audacious > /dev/null; \ |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
50 gtkdoc-mktmpl --module=audacious; \ |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
51 popd > /dev/null; \ |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
52 pushd doc/libaudacious > /dev/null; \ |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
53 gtkdoc-mkdb --module=libaudacious --source-dir=../../libaudacious/ --output-format=xml --main-sgml-file=xml/libaudacious-main.sgml; \ |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
54 popd > /dev/null; \ |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
55 pushd doc/audacious > /dev/null; \ |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
56 gtkdoc-mkdb --module=audacious --source-dir=../../audacious/ --ignore-files=intl --output-format=xml --main-sgml-file=xml/audacious-main.sgml; \ |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
57 popd > /dev/null; \ |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
58 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
|
59 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
|
60 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
|
61 mkdir -p doc/audacious/html; \ |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
62 pushd doc/libaudacious/html > /dev/null; \ |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
63 gtkdoc-mkhtml libaudacious ../libaudacious-main.sgml; \ |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
64 popd > /dev/null; \ |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
65 pushd doc/audacious/html > /dev/null; \ |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
66 rm ../xml/xml; \ |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
67 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
|
68 gtkdoc-mkhtml audacious ../xml/audacious-main.sgml; \ |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
69 popd > /dev/null; \ |
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 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
|
72 echo; \ |
34299070db29
[svn] - make documentation-build will invoke gtk-doc to compile the audacious SDK docs.
nenolod
parents:
1879
diff
changeset
|
73 ); |