annotate buildsys.mk.in @ 4868:a6feb7c0f722

Do not leave the audio device open when using stop after current song, patch by Edward Sheldrake closes bug #12.
author Tony Vroon <chainsaw@gentoo.org>
date Fri, 24 Apr 2009 09:43:03 +0100
parents 651f5da89c3f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
1 #
4749
b86e9f9663f4 Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents: 4470
diff changeset
2 # Copyright (c) 2007 - 2008, Jonathan Schleifer <js-buildsys@webkeks.org>
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
3 #
4275
3e0a2cce15f6 Added HG repo URL to buildsys as a comment.
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4265
diff changeset
4 # https://webkeks.org/hg/buildsys/
3e0a2cce15f6 Added HG repo URL to buildsys as a comment.
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4265
diff changeset
5 #
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
6 # Permission to use, copy, modify, and/or distribute this software for any
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
7 # purpose with or without fee is hereby granted, provided that the above
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
8 # copyright notice and this permission notice is present in all copies.
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
9 #
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
10 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
11 # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
12 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
13 # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
14 # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
15 # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
16 # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
17 # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
18 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
19 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
20 # POSSIBILITY OF SUCH DAMAGE.
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
21 #
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
22
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
23 PACKAGE = @PACKAGE@
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
24 CC = @CC@
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
25 CXX = @CXX@
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
26 CPP = @CPP@
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
27 DC = @DC@
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
28 ERLC = @ERLC@
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
29 OBJC = @OBJC@
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
30 AR = @AR@
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
31 LD = ${CC}
4791
06079e59fc4b Update to latest rev of buildsys & move stuff that doesn't belong there
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4771
diff changeset
32 RANLIB = @RANLIB@
06079e59fc4b Update to latest rev of buildsys & move stuff that doesn't belong there
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4771
diff changeset
33 PYTHON = @PYTHON@
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
34 CFLAGS = @CFLAGS@
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
35 CXXFLAGS = @CXXFLAGS@
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
36 CPPFLAGS = @CPPFLAGS@
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
37 DFLAGS = @DFLAGS@
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
38 ERLCFLAGS = @ERLCFLAGS@
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
39 OBJCFLAGS = @OBJCFLAGS@
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
40 LDFLAGS = @LDFLAGS@
4791
06079e59fc4b Update to latest rev of buildsys & move stuff that doesn't belong there
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4771
diff changeset
41 PYTHON_FLAGS = @PYTHON_FLAGS@
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
42 LIBS = @LIBS@
3656
db04d0916c22 implib for ${PROG} should finally work.
Jonathan Schleifer <js@h3c.de>
parents: 3653
diff changeset
43 PROG_IMPLIB_NEEDED = @PROG_IMPLIB_NEEDED@
db04d0916c22 implib for ${PROG} should finally work.
Jonathan Schleifer <js@h3c.de>
parents: 3653
diff changeset
44 PROG_IMPLIB_LDFLAGS = @PROG_IMPLIB_LDFLAGS@
3641
12500701b6dd Update buildsys (adds ${PROG_SUFFIX}).
Jonathan Schleifer <js@h3c.de>
parents: 3632
diff changeset
45 PROG_SUFFIX = @EXEEXT@
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
46 LIB_CPPFLAGS = @LIB_CPPFLAGS@
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
47 LIB_CFLAGS = @LIB_CFLAGS@
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
48 LIB_LDFLAGS = @LIB_LDFLAGS@
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
49 LIB_PREFIX = @LIB_PREFIX@
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
50 LIB_SUFFIX = @LIB_SUFFIX@
4791
06079e59fc4b Update to latest rev of buildsys & move stuff that doesn't belong there
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4771
diff changeset
51 PLUGIN_CPPFLAGS = @PLUGIN_CPPFLAGS@
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
52 PLUGIN_CFLAGS = @PLUGIN_CFLAGS@
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
53 PLUGIN_LDFLAGS = @PLUGIN_LDFLAGS@
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
54 PLUGIN_SUFFIX = @PLUGIN_SUFFIX@
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
55 INSTALL_LIB = @INSTALL_LIB@
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
56 UNINSTALL_LIB = @UNINSTALL_LIB@
3594
fa49ef305f59 Some buildsys fixes for Windows.
Jonathan Schleifer <js@h3c.de>
parents: 3593
diff changeset
57 CLEAN_LIB = @CLEAN_LIB@
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
58 LN_S = @LN_S@
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
59 MKDIR_P = mkdir -p
3616
7d146509516b install-sh doesn't work.
Jonathan Schleifer <js@h3c.de>
parents: 3614
diff changeset
60 INSTALL = install
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
61 SHELL = @SHELL@
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
62 prefix = @prefix@
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
63 exec_prefix = @exec_prefix@
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
64 bindir = @bindir@
4815
651f5da89c3f pkgconfig files should be installed in lib/pkgconfig
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 4814
diff changeset
65 pkgconfdir = @libdir@/pkgconfig
4814
06fb50c7f40a we should use modified libdir insted of plugindir.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 4813
diff changeset
66 libdir = @libdir@/${PACKAGE}
06fb50c7f40a we should use modified libdir insted of plugindir.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 4813
diff changeset
67 plugindir ?= ${libdir}
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
68 datarootdir = @datarootdir@
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
69 datadir = @datadir@
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
70 includedir = @includedir@
4802
d834d2df8d7c override includesibdir for compatibility.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 4798
diff changeset
71 includesubdir ?= ${PACKAGE}
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
72 mandir = @mandir@
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
73 mansubdir ?= man1
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
74
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
75 OBJS1 = ${SRCS:.c=.o}
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
76 OBJS2 = ${OBJS1:.cc=.o}
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
77 OBJS3 = ${OBJS2:.cxx=.o}
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
78 OBJS4 = ${OBJS3:.d=.o}
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
79 OBJS5 = ${OBJS4:.erl=.beam}
4749
b86e9f9663f4 Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents: 4470
diff changeset
80 OBJS6 = ${OBJS5:.m=.o}
4791
06079e59fc4b Update to latest rev of buildsys & move stuff that doesn't belong there
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4771
diff changeset
81 OBJS7 = ${OBJS6:.py=.pyc}
06079e59fc4b Update to latest rev of buildsys & move stuff that doesn't belong there
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4771
diff changeset
82 OBJS += ${OBJS7:.xpm=.o}
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
83
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
84 .SILENT:
4809
17a91cf51340 Clear .SUFFIXES first to prevent compiling files silently.
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4806
diff changeset
85 .SUFFIXES:
17a91cf51340 Clear .SUFFIXES first to prevent compiling files silently.
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4806
diff changeset
86 .SUFFIXES: .beam .c .cc .cxx .d .dep .erl .m .o .py .pyc .xpm
3660
c54dfcdc839e Add missing targets to .PHONY.
Jonathan Schleifer <js@h3c.de>
parents: 3657
diff changeset
87 .PHONY: all subdirs pre-depend depend install install-extra uninstall uninstall-extra clean distclean
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
88
3611
6d055449020a Fix dependencies and other parallel stuff.
Jonathan Schleifer <js@h3c.de>
parents: 3610
diff changeset
89 all:
3630
773f69be3d14 Oops. Fix parallel build.
Jonathan Schleifer <js@h3c.de>
parents: 3620
diff changeset
90 for i in subdirs depend ${STATIC_LIB} ${STATIC_LIB_NOINST} ${LIB} ${LIB_NOINST} ${PLUGIN} ${PLUGIN_NOINST} ${PROG} ${PROG_NOINST}; do \
3614
ddf207fc7d8e Abort on error.
Jonathan Schleifer <js@h3c.de>
parents: 3613
diff changeset
91 ${MAKE} ${MFLAGS} $$i || exit 1; \
3611
6d055449020a Fix dependencies and other parallel stuff.
Jonathan Schleifer <js@h3c.de>
parents: 3610
diff changeset
92 done
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
93
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
94 subdirs:
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
95 for i in ${SUBDIRS}; do \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
96 ${DIR_ENTER}; \
3575
021005bfab68 Add ${MFLAGS}.
Jonathan Schleifer <js@h3c.de>
parents: 3572
diff changeset
97 ${MAKE} ${MFLAGS} || exit 1; \
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
98 ${DIR_LEAVE}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
99 done
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
100
3593
85a49369c95f Actually, the last patch was wrong. depend has to depend on ${SRCS}.
Jonathan Schleifer <js@h3c.de>
parents: 3586
diff changeset
101 depend: pre-depend ${SRCS}
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
102 regen=0; \
4749
b86e9f9663f4 Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents: 4470
diff changeset
103 deps=""; \
3725
b0f65f70467d Update buildsys.
Jonathan Schleifer <js@h3c.de>
parents: 3715
diff changeset
104 test -f .deps || regen=1; \
4749
b86e9f9663f4 Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents: 4470
diff changeset
105 for i in ${SRCS}; do \
b86e9f9663f4 Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents: 4470
diff changeset
106 case $$i in \
4791
06079e59fc4b Update to latest rev of buildsys & move stuff that doesn't belong there
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4771
diff changeset
107 *.c) \
06079e59fc4b Update to latest rev of buildsys & move stuff that doesn't belong there
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4771
diff changeset
108 test $$i -nt .deps && regen=1; \
06079e59fc4b Update to latest rev of buildsys & move stuff that doesn't belong there
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4771
diff changeset
109 deps="$$deps $${i%.c}.dep"; \
06079e59fc4b Update to latest rev of buildsys & move stuff that doesn't belong there
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4771
diff changeset
110 ;; \
06079e59fc4b Update to latest rev of buildsys & move stuff that doesn't belong there
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4771
diff changeset
111 *.cc) \
4749
b86e9f9663f4 Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents: 4470
diff changeset
112 test $$i -nt .deps && regen=1; \
4791
06079e59fc4b Update to latest rev of buildsys & move stuff that doesn't belong there
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4771
diff changeset
113 deps="$$deps $${i%.cc}.dep"; \
06079e59fc4b Update to latest rev of buildsys & move stuff that doesn't belong there
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4771
diff changeset
114 ;; \
06079e59fc4b Update to latest rev of buildsys & move stuff that doesn't belong there
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4771
diff changeset
115 *.cxx) \
06079e59fc4b Update to latest rev of buildsys & move stuff that doesn't belong there
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4771
diff changeset
116 test $$i -nt .deps && regen=1; \
06079e59fc4b Update to latest rev of buildsys & move stuff that doesn't belong there
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4771
diff changeset
117 deps="$$deps $${i%.cxx}.dep"; \
06079e59fc4b Update to latest rev of buildsys & move stuff that doesn't belong there
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4771
diff changeset
118 ;; \
06079e59fc4b Update to latest rev of buildsys & move stuff that doesn't belong there
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4771
diff changeset
119 *.m) \
06079e59fc4b Update to latest rev of buildsys & move stuff that doesn't belong there
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4771
diff changeset
120 test $$i -nt .deps && regen=1; \
06079e59fc4b Update to latest rev of buildsys & move stuff that doesn't belong there
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4771
diff changeset
121 deps="$$deps $${i%.m}.dep"; \
4749
b86e9f9663f4 Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents: 4470
diff changeset
122 ;; \
b86e9f9663f4 Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents: 4470
diff changeset
123 esac; \
b86e9f9663f4 Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents: 4470
diff changeset
124 done; \
b86e9f9663f4 Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents: 4470
diff changeset
125 if test x"$$regen" = x"1" -a x"$$deps" != "x"; then \
3610
a51873dc4052 Add depend status.
Jonathan Schleifer <js@h3c.de>
parents: 3598
diff changeset
126 ${DEPEND_STATUS}; \
4749
b86e9f9663f4 Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents: 4470
diff changeset
127 if ${MAKE} ${MFLAGS} $$deps; then \
4806
563b6f48acd9 Move one line to fix dependency generation.
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4802
diff changeset
128 rm -f .deps; \
4749
b86e9f9663f4 Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents: 4470
diff changeset
129 cat $$deps >.deps; \
b86e9f9663f4 Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents: 4470
diff changeset
130 rm -f $$deps; \
4263
efb49258f4f0 Make dependency generation threaded.
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 3877
diff changeset
131 ${DEPEND_OK}; \
efb49258f4f0 Make dependency generation threaded.
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 3877
diff changeset
132 else \
4749
b86e9f9663f4 Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents: 4470
diff changeset
133 rm -f .deps $$deps; \
4263
efb49258f4f0 Make dependency generation threaded.
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 3877
diff changeset
134 ${DEPEND_FAILED}; \
3611
6d055449020a Fix dependencies and other parallel stuff.
Jonathan Schleifer <js@h3c.de>
parents: 3610
diff changeset
135 fi; \
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
136 fi
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
137
4263
efb49258f4f0 Make dependency generation threaded.
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 3877
diff changeset
138 .c.dep .cc.dep .cxx.dep .m.dep:
4265
7410b81a3362 Fix a possible bug in dependency generation.
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4264
diff changeset
139 ${CPP} ${CPPFLAGS} -M $< >$@
4263
efb49258f4f0 Make dependency generation threaded.
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 3877
diff changeset
140
efb49258f4f0 Make dependency generation threaded.
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 3877
diff changeset
141 .d.dep:
4749
b86e9f9663f4 Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents: 4470
diff changeset
142 .xpm.dep:
4263
efb49258f4f0 Make dependency generation threaded.
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 3877
diff changeset
143
3586
ddb15c329985 Update audacious to latest rev of build system.
Jonathan Schleifer <js@h3c.de>
parents: 3575
diff changeset
144 pre-depend:
ddb15c329985 Update audacious to latest rev of build system.
Jonathan Schleifer <js@h3c.de>
parents: 3575
diff changeset
145
3610
a51873dc4052 Add depend status.
Jonathan Schleifer <js@h3c.de>
parents: 3598
diff changeset
146 ${PROG} ${PROG_NOINST}: ${EXT_DEPS} ${OBJS}
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
147 ${LINK_STATUS}
3586
ddb15c329985 Update audacious to latest rev of build system.
Jonathan Schleifer <js@h3c.de>
parents: 3575
diff changeset
148 if ${LD} -o $@ ${OBJS} ${LDFLAGS} ${LIBS}; then \
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
149 ${LINK_OK}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
150 else \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
151 ${LINK_FAILED}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
152 fi
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
153
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
154 ${LIB} ${LIB_NOINST}: ${EXT_DEPS} ${OBJS}
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
155 ${LINK_STATUS}
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
156 if ${LD} -o $@ ${OBJS} ${LIB_LDFLAGS} ${LDFLAGS} ${LIBS}; then \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
157 ${LINK_OK}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
158 else \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
159 ${LINK_FAILED}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
160 fi
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
161
4470
ef42ac9179c9 buildsys.mk.in: Fixed typo.
Jonathan Schleifer <js@webkeks.org>
parents: 4319
diff changeset
162 ${PLUGIN} ${PLUGIN_NOINST}: ${EXT_DEPS} ${OBJS}
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
163 ${LINK_STATUS}
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
164 if ${LD} -o $@ ${OBJS} ${PLUGIN_LDFLAGS} ${LDFLAGS} ${LIBS}; then \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
165 ${LINK_OK}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
166 else \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
167 ${LINK_FAILED}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
168 fi
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
169
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
170 ${STATIC_LIB} ${STATIC_LIB_NOINST}: ${EXT_DEPS} ${OBJS}
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
171 ${LINK_STATUS}
4791
06079e59fc4b Update to latest rev of buildsys & move stuff that doesn't belong there
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4771
diff changeset
172 if ${AR} cr $@ ${OBJS} && ${RANLIB} ${@}; then \
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
173 ${LINK_OK}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
174 else \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
175 ${LINK_FAILED}; \
4791
06079e59fc4b Update to latest rev of buildsys & move stuff that doesn't belong there
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4771
diff changeset
176 rm -f $@; \
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
177 fi
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
178
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
179 .c.o:
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
180 ${COMPILE_STATUS}
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
181 if ${CC} ${CFLAGS} ${CPPFLAGS} -c -o $@ $<; then \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
182 ${COMPILE_OK}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
183 else \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
184 ${COMPILE_FAILED}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
185 fi
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
186
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
187 .cc.o .cxx.o:
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
188 ${COMPILE_STATUS}
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
189 if ${CXX} ${CXXFLAGS} ${CPPFLAGS} -c -o $@ $<; then \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
190 ${COMPILE_OK}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
191 else \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
192 ${COMPILE_FAILED}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
193 fi
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
194
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
195 .d.o:
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
196 ${COMPILE_STATUS}
3619
1033e592161c Use test instead of [ ].
Jonathan Schleifer <js@h3c.de>
parents: 3616
diff changeset
197 if test x"$(basename ${DC})" = x"dmd"; then \
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
198 if ${DC} ${DFLAGS} -c -of$@ $<; then \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
199 ${COMPILE_OK}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
200 else \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
201 ${COMPILE_FAILED}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
202 fi \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
203 else \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
204 if ${DC} ${DFLAGS} -c -o $@ $<; then \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
205 ${COMPILE_OK}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
206 else \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
207 ${COMPILE_FAILED}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
208 fi \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
209 fi
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
210
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
211 .erl.beam:
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
212 ${COMPILE_STATUS}
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
213 if ${ERLC} ${ERLCFLAGS} -o $@ $<; then \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
214 ${COMPILE_OK}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
215 else \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
216 ${COMPILE_FAILED}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
217 fi
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
218
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
219 .m.o:
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
220 ${COMPILE_STATUS}
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
221 if ${OBJC} ${OBJCFLAGS} ${CPPFLAGS} -c -o $@ $<; then \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
222 ${COMPILE_OK}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
223 else \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
224 ${COMPILE_FAILED}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
225 fi
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
226
4791
06079e59fc4b Update to latest rev of buildsys & move stuff that doesn't belong there
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4771
diff changeset
227 .py.pyc:
06079e59fc4b Update to latest rev of buildsys & move stuff that doesn't belong there
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4771
diff changeset
228 ${COMPILE_STATUS}
06079e59fc4b Update to latest rev of buildsys & move stuff that doesn't belong there
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4771
diff changeset
229 if ${PYTHON} ${PYTHON_FLAGS} -c "import py_compile; py_compile.compile('$<')"; then \
06079e59fc4b Update to latest rev of buildsys & move stuff that doesn't belong there
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4771
diff changeset
230 ${COMPILE_OK}; \
06079e59fc4b Update to latest rev of buildsys & move stuff that doesn't belong there
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4771
diff changeset
231 else \
06079e59fc4b Update to latest rev of buildsys & move stuff that doesn't belong there
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4771
diff changeset
232 ${COMPILE_FAILED}; \
06079e59fc4b Update to latest rev of buildsys & move stuff that doesn't belong there
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4771
diff changeset
233 fi
06079e59fc4b Update to latest rev of buildsys & move stuff that doesn't belong there
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4771
diff changeset
234
4749
b86e9f9663f4 Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents: 4470
diff changeset
235 .xpm.o:
b86e9f9663f4 Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents: 4470
diff changeset
236 ${COMPILE_STATUS}
b86e9f9663f4 Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents: 4470
diff changeset
237 if ${CC} ${CFLAGS} ${CPPFLAGS} -x c -c -o $@ $<; then \
b86e9f9663f4 Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents: 4470
diff changeset
238 ${COMPILE_OK}; \
b86e9f9663f4 Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents: 4470
diff changeset
239 else \
b86e9f9663f4 Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents: 4470
diff changeset
240 ${COMPILE_FAILED}; \
b86e9f9663f4 Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents: 4470
diff changeset
241 fi
b86e9f9663f4 Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents: 4470
diff changeset
242
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
243 install: ${LIB} ${STATIC_LIB} ${PLUGIN} ${PROG} install-extra
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
244 for i in ${SUBDIRS}; do \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
245 ${DIR_ENTER}; \
3575
021005bfab68 Add ${MFLAGS}.
Jonathan Schleifer <js@h3c.de>
parents: 3572
diff changeset
246 ${MAKE} ${MFLAGS} install || exit 1; \
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
247 ${DIR_LEAVE}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
248 done
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
249
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
250 for i in ${LIB}; do \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
251 ${INSTALL_STATUS}; \
4814
06fb50c7f40a we should use modified libdir insted of plugindir.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 4813
diff changeset
252 if ${MKDIR_P} ${DESTDIR}${libdir} && ${INSTALL_LIB}; then \
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
253 ${INSTALL_OK}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
254 else \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
255 ${INSTALL_FAILED}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
256 fi \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
257 done
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
258
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
259 for i in ${STATIC_LIB}; do \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
260 ${INSTALL_STATUS}; \
4814
06fb50c7f40a we should use modified libdir insted of plugindir.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 4813
diff changeset
261 if ${MKDIR_P} ${DESTDIR}${libdir} && ${INSTALL} -m 644 $$i ${DESTDIR}${libdir}/$$i; then \
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
262 ${INSTALL_OK}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
263 else \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
264 ${INSTALL_FAILED}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
265 fi \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
266 done
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
267
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
268 for i in ${PLUGIN}; do \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
269 ${INSTALL_STATUS}; \
3725
b0f65f70467d Update buildsys.
Jonathan Schleifer <js@h3c.de>
parents: 3715
diff changeset
270 if ${MKDIR_P} ${DESTDIR}${plugindir} && ${INSTALL} -m 755 $$i ${DESTDIR}${plugindir}/$$i; then \
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
271 ${INSTALL_OK}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
272 else \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
273 ${INSTALL_FAILED}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
274 fi \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
275 done
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
276
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
277 for i in ${DATA}; do \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
278 ${INSTALL_STATUS}; \
3572
625af2797f35 Clean up Makefiles.
Jonathan Schleifer <js@h3c.de>
parents: 3571
diff changeset
279 if ${MKDIR_P} $$(dirname ${DESTDIR}${datadir}/${PACKAGE}/$$i) && ${INSTALL} -m 644 $$i ${DESTDIR}${datadir}/${PACKAGE}/$$i; then \
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
280 ${INSTALL_OK}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
281 else \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
282 ${INSTALL_FAILED}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
283 fi \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
284 done
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
285
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
286 for i in ${PROG}; do \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
287 ${INSTALL_STATUS}; \
3632
ffe7a2346055 Seems like I forgot to remove -s for ${PROG}.
Jonathan Schleifer <js@h3c.de>
parents: 3630
diff changeset
288 if ${MKDIR_P} ${DESTDIR}${bindir} && ${INSTALL} -m 755 $$i ${DESTDIR}${bindir}/$$i; then \
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
289 ${INSTALL_OK}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
290 else \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
291 ${INSTALL_FAILED}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
292 fi \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
293 done
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
294
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
295 for i in ${INCLUDES}; do \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
296 ${INSTALL_STATUS}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
297 if ${MKDIR_P} ${DESTDIR}${includedir}/${includesubdir} && ${INSTALL} -m 644 $$i ${DESTDIR}${includedir}/${includesubdir}/$$i; then \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
298 ${INSTALL_OK}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
299 else \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
300 ${INSTALL_FAILED}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
301 fi \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
302 done
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
303
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
304 for i in ${MAN}; do \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
305 ${INSTALL_STATUS}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
306 if ${MKDIR_P} ${DESTDIR}${mandir}/${mansubdir} && ${INSTALL} -m 644 $$i ${DESTDIR}${mandir}/${mansubdir}/$$i; then \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
307 ${INSTALL_OK}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
308 else \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
309 ${INSTALL_FAILED}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
310 fi \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
311 done
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
312
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
313 install-extra:
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
314
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
315 uninstall: uninstall-extra
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
316 for i in ${SUBDIRS}; do \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
317 ${DIR_ENTER}; \
3575
021005bfab68 Add ${MFLAGS}.
Jonathan Schleifer <js@h3c.de>
parents: 3572
diff changeset
318 ${MAKE} ${MFLAGS} uninstall || exit 1; \
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
319 ${DIR_LEAVE}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
320 done
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
321
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
322 for i in ${LIB}; do \
4814
06fb50c7f40a we should use modified libdir insted of plugindir.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 4813
diff changeset
323 if test -f ${DESTDIR}${libdir}/$$i; then \
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
324 if ${UNINSTALL_LIB}; then \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
325 ${DELETE_OK}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
326 else \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
327 ${DELETE_FAILED}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
328 fi \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
329 fi; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
330 done
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
331
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
332 for i in ${STATIC_LIB}; do \
4814
06fb50c7f40a we should use modified libdir insted of plugindir.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 4813
diff changeset
333 if test -f ${DESTDIR}${libdir}/$$i; then \
06fb50c7f40a we should use modified libdir insted of plugindir.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 4813
diff changeset
334 if rm -f ${DESTDIR}${libdir}/$$i; then \
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
335 ${DELETE_OK}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
336 else \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
337 ${DELETE_FAILED}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
338 fi \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
339 fi \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
340 done
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
341
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
342 for i in ${PLUGIN}; do \
3725
b0f65f70467d Update buildsys.
Jonathan Schleifer <js@h3c.de>
parents: 3715
diff changeset
343 if test -f ${DESTDIR}${plugindir}/$$i; then \
b0f65f70467d Update buildsys.
Jonathan Schleifer <js@h3c.de>
parents: 3715
diff changeset
344 if rm -f ${DESTDIR}${plugindir}/$$i; then \
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
345 ${DELETE_OK}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
346 else \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
347 ${DELETE_FAILED}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
348 fi \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
349 fi \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
350 done
3725
b0f65f70467d Update buildsys.
Jonathan Schleifer <js@h3c.de>
parents: 3715
diff changeset
351 -rmdir ${DESTDIR}${plugindir} >/dev/null 2>&1
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
352
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
353 for i in ${DATA}; do \
3619
1033e592161c Use test instead of [ ].
Jonathan Schleifer <js@h3c.de>
parents: 3616
diff changeset
354 if test -f ${DESTDIR}${datadir}/${PACKAGE}/$$i; then \
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
355 if rm -f ${DESTDIR}${datadir}/${PACKAGE}/$$i; then \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
356 ${DELETE_OK}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
357 else \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
358 ${DELETE_FAILED}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
359 fi \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
360 fi \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
361 done
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
362
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
363 for i in ${PROG}; do \
3619
1033e592161c Use test instead of [ ].
Jonathan Schleifer <js@h3c.de>
parents: 3616
diff changeset
364 if test -f ${DESTDIR}${bindir}/$$i; then \
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
365 if rm -f ${DESTDIR}${bindir}/$$i; then \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
366 ${DELETE_OK}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
367 else \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
368 ${DELETE_FAILED}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
369 fi \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
370 fi \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
371 done
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
372
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
373 for i in ${INCLUDES}; do \
3619
1033e592161c Use test instead of [ ].
Jonathan Schleifer <js@h3c.de>
parents: 3616
diff changeset
374 if test -f ${DESTDIR}${includedir}/${includesubdir}/$$i; then \
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
375 if rm -f ${DESTDIR}${includedir}/${includesubdir}/$$i; then \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
376 ${DELETE_OK}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
377 else \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
378 ${DELETE_FAILED}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
379 fi \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
380 fi \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
381 done
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
382 -rmdir ${DESTDIR}${includedir}/${includesubdir} >/dev/null 2>&1
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
383
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
384 for i in ${MAN}; do \
3619
1033e592161c Use test instead of [ ].
Jonathan Schleifer <js@h3c.de>
parents: 3616
diff changeset
385 if test -f ${DESTDIR}${mandir}/${mansubdir}/$$i; then \
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
386 if rm -f ${DESTDIR}${mandir}/${mansubdir}/$$i; then \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
387 ${DELETE_OK}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
388 else \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
389 ${DELETE_FAILED}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
390 fi \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
391 fi \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
392 done
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
393
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
394 uninstall-extra:
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
395
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
396 clean:
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
397 for i in ${SUBDIRS}; do \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
398 ${DIR_ENTER}; \
3575
021005bfab68 Add ${MFLAGS}.
Jonathan Schleifer <js@h3c.de>
parents: 3572
diff changeset
399 ${MAKE} ${MFLAGS} clean || exit 1; \
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
400 ${DIR_LEAVE}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
401 done
4798
0ea6dd6bfb5a audlegacy begins.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 4791
diff changeset
402
4265
7410b81a3362 Fix a possible bug in dependency generation.
Jonathan Schleifer <js-audacious@webkeks.org>
parents: 4264
diff changeset
403 for i in ${OBJS} ${CLEAN} ${CLEAN_LIB} .deps ${DEPS}; do \
3619
1033e592161c Use test instead of [ ].
Jonathan Schleifer <js@h3c.de>
parents: 3616
diff changeset
404 if test -f $$i -o -d $$i; then \
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
405 if rm -fr $$i; then \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
406 ${DELETE_OK}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
407 else \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
408 ${DELETE_FAILED}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
409 fi \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
410 fi \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
411 done
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
412
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
413 distclean: clean
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
414 for i in ${SUBDIRS}; do \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
415 ${DIR_ENTER}; \
3575
021005bfab68 Add ${MFLAGS}.
Jonathan Schleifer <js@h3c.de>
parents: 3572
diff changeset
416 ${MAKE} ${MFLAGS} distclean || exit 1; \
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
417 ${DIR_LEAVE}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
418 done
4798
0ea6dd6bfb5a audlegacy begins.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 4791
diff changeset
419
3725
b0f65f70467d Update buildsys.
Jonathan Schleifer <js@h3c.de>
parents: 3715
diff changeset
420 for i in ${PROG} ${PROG_NOINST} ${LIB} ${LIB_NOINST} ${STATIC_LIB} ${STATIC_LIB_NOINST} ${PLUGIN} ${PLUGIN_NOINST} ${DISTCLEAN} *~; do \
3619
1033e592161c Use test instead of [ ].
Jonathan Schleifer <js@h3c.de>
parents: 3616
diff changeset
421 if test -f $$i -o -d $$i; then \
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
422 if rm -fr $$i; then \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
423 ${DELETE_OK}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
424 else \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
425 ${DELETE_FAILED}; \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
426 fi \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
427 fi \
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
428 done
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
429
3725
b0f65f70467d Update buildsys.
Jonathan Schleifer <js@h3c.de>
parents: 3715
diff changeset
430 DIR_ENTER = printf "\033[K\033[0;36mEntering directory \033[1;36m$$i\033[0;36m.\033[0m\n"; cd $$i || exit 1
b0f65f70467d Update buildsys.
Jonathan Schleifer <js@h3c.de>
parents: 3715
diff changeset
431 DIR_LEAVE = printf "\033[K\033[0;36mLeaving directory \033[1;36m$$i\033[0;36m.\033[0m\n"; cd .. || exit 1
b0f65f70467d Update buildsys.
Jonathan Schleifer <js@h3c.de>
parents: 3715
diff changeset
432 DEPEND_STATUS = printf "\033[K\033[0;33mGenerating dependencies...\033[0m\r"
b0f65f70467d Update buildsys.
Jonathan Schleifer <js@h3c.de>
parents: 3715
diff changeset
433 DEPEND_OK = printf "\033[K\033[0;32mSuccessfully generated dependencies.\033[0m\n"
b0f65f70467d Update buildsys.
Jonathan Schleifer <js@h3c.de>
parents: 3715
diff changeset
434 DEPEND_FAILED = printf "\033[K\033[0;31mFailed to generate dependencies!\033[0m\n"; exit 1
b0f65f70467d Update buildsys.
Jonathan Schleifer <js@h3c.de>
parents: 3715
diff changeset
435 COMPILE_STATUS = printf "\033[K\033[0;33mCompiling \033[1;33m$<\033[0;33m...\033[0m\r"
b0f65f70467d Update buildsys.
Jonathan Schleifer <js@h3c.de>
parents: 3715
diff changeset
436 COMPILE_OK = printf "\033[K\033[0;32mSuccessfully compiled \033[1;32m$<\033[0;32m.\033[0m\n"
b0f65f70467d Update buildsys.
Jonathan Schleifer <js@h3c.de>
parents: 3715
diff changeset
437 COMPILE_FAILED = printf "\033[K\033[0;31mFailed to compile \033[1;31m$<\033[0;31m!\033[0m\n"; exit 1
b0f65f70467d Update buildsys.
Jonathan Schleifer <js@h3c.de>
parents: 3715
diff changeset
438 LINK_STATUS = printf "\033[K\033[0;33mLinking \033[1;33m$@\033[0;33m...\033[0m\r"
b0f65f70467d Update buildsys.
Jonathan Schleifer <js@h3c.de>
parents: 3715
diff changeset
439 LINK_OK = printf "\033[K\033[0;32mSuccessfully linked \033[1;32m$@\033[0;32m.\033[0m\n"
b0f65f70467d Update buildsys.
Jonathan Schleifer <js@h3c.de>
parents: 3715
diff changeset
440 LINK_FAILED = printf "\033[K\033[0;31mFailed to link \033[1;31m$@\033[0;31m!\033[0m\n"; exit 1
b0f65f70467d Update buildsys.
Jonathan Schleifer <js@h3c.de>
parents: 3715
diff changeset
441 INSTALL_STATUS = printf "\033[K\033[0;33mInstalling \033[1;33m$$i\033[0;33m...\033[0m\r"
b0f65f70467d Update buildsys.
Jonathan Schleifer <js@h3c.de>
parents: 3715
diff changeset
442 INSTALL_OK = printf "\033[K\033[0;32mSuccessfully installed \033[1;32m$$i\033[0;32m.\033[0m\n"
b0f65f70467d Update buildsys.
Jonathan Schleifer <js@h3c.de>
parents: 3715
diff changeset
443 INSTALL_FAILED = printf "\033[K\033[0;31mFailed to install \033[1;31m$$i\033[0;31m!\033[0m\n"; exit 1
b0f65f70467d Update buildsys.
Jonathan Schleifer <js@h3c.de>
parents: 3715
diff changeset
444 DELETE_OK = printf "\033[K\033[0;34mDeleted \033[1;34m$$i\033[0;34m.\033[0m\n"
b0f65f70467d Update buildsys.
Jonathan Schleifer <js@h3c.de>
parents: 3715
diff changeset
445 DELETE_FAILED = printf "\033[K\033[0;31mFailed to delete \033[1;31m$$i\033[0;31m!\033[0m\n"; exit 1
3535
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
446
9ddf21ab5c84 Transit to Mk2.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
447 -include .deps