Mercurial > audlegacy-plugins
annotate buildsys.mk.in @ 2991:2cdf6400594c
flacng: enable replaygain
author | Teemu Torma <teemu@torma.org> |
---|---|
date | Tue, 10 Feb 2009 23:56:41 +0100 |
parents | a68a51138f4d |
children | bf2d87afa006 |
rev | line source |
---|---|
1763 | 1 # |
2852
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
2 # Copyright (c) 2007 - 2008, Jonathan Schleifer <js-buildsys@webkeks.org> |
1763 | 3 # |
2378
e7d59a6ed443
Added HG repo URL to buildsys as a comment.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2374
diff
changeset
|
4 # https://webkeks.org/hg/buildsys/ |
e7d59a6ed443
Added HG repo URL to buildsys as a comment.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2374
diff
changeset
|
5 # |
1763 | 6 # Permission to use, copy, modify, and/or distribute this software for any |
7 # purpose with or without fee is hereby granted, provided that the above | |
8 # copyright notice and this permission notice is present in all copies. | |
9 # | |
10 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | |
11 # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
12 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |
13 # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE | |
14 # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | |
15 # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | |
16 # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | |
17 # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | |
18 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | |
19 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |
20 # POSSIBILITY OF SUCH DAMAGE. | |
21 # | |
22 | |
23 PACKAGE = @PACKAGE@ | |
24 CC = @CC@ | |
25 CXX = @CXX@ | |
26 CPP = @CPP@ | |
27 DC = @DC@ | |
28 ERLC = @ERLC@ | |
29 OBJC = @OBJC@ | |
30 AR = @AR@ | |
31 LD = ${CC} | |
2947
c79e239a816f
Same as for audacious.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2932
diff
changeset
|
32 RANLIB = @RANLIB@ |
c79e239a816f
Same as for audacious.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2932
diff
changeset
|
33 PYTHON = @PYTHON@ |
1763 | 34 CFLAGS = @CFLAGS@ |
35 CXXFLAGS = @CXXFLAGS@ | |
36 CPPFLAGS = @CPPFLAGS@ | |
37 DFLAGS = @DFLAGS@ | |
38 ERLCFLAGS = @ERLCFLAGS@ | |
39 OBJCFLAGS = @OBJCFLAGS@ | |
40 LDFLAGS = @LDFLAGS@ | |
2947
c79e239a816f
Same as for audacious.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2932
diff
changeset
|
41 PYTHON_FLAGS = @PYTHON_FLAGS@ |
1763 | 42 LIBS = @LIBS@ |
1909 | 43 PROG_IMPLIB_NEEDED = @PROG_IMPLIB_NEEDED@ |
44 PROG_IMPLIB_LDFLAGS = @PROG_IMPLIB_LDFLAGS@ | |
1879
81cdc01db60e
Update buildsys (adds ${PROG_SUFFIX}).
Jonathan Schleifer <js@h3c.de>
parents:
1877
diff
changeset
|
45 PROG_SUFFIX = @EXEEXT@ |
1763 | 46 LIB_CPPFLAGS = @LIB_CPPFLAGS@ |
47 LIB_CFLAGS = @LIB_CFLAGS@ | |
48 LIB_LDFLAGS = @LIB_LDFLAGS@ | |
49 LIB_PREFIX = @LIB_PREFIX@ | |
50 LIB_SUFFIX = @LIB_SUFFIX@ | |
2947
c79e239a816f
Same as for audacious.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2932
diff
changeset
|
51 PLUGIN_CPPFLAGS = @PLUGIN_CPPFLAGS@ |
1763 | 52 PLUGIN_CFLAGS = @PLUGIN_CFLAGS@ |
53 PLUGIN_LDFLAGS = @PLUGIN_LDFLAGS@ | |
54 PLUGIN_SUFFIX = @PLUGIN_SUFFIX@ | |
55 INSTALL_LIB = @INSTALL_LIB@ | |
56 UNINSTALL_LIB = @UNINSTALL_LIB@ | |
57 CLEAN_LIB = @CLEAN_LIB@ | |
58 LN_S = @LN_S@ | |
59 MKDIR_P = mkdir -p | |
1863 | 60 INSTALL = install |
1763 | 61 SHELL = @SHELL@ |
62 prefix = @prefix@ | |
63 exec_prefix = @exec_prefix@ | |
64 bindir = @bindir@ | |
2974 | 65 libdir = @libdir@/${PACKAGE} |
66 plugindir ?= ${libdir} | |
1763 | 67 datarootdir = @datarootdir@ |
68 datadir = @datadir@ | |
69 includedir = @includedir@ | |
70 includesubdir ?= ${PACKAGE} | |
71 mandir = @mandir@ | |
72 mansubdir ?= man1 | |
73 | |
74 OBJS1 = ${SRCS:.c=.o} | |
75 OBJS2 = ${OBJS1:.cc=.o} | |
76 OBJS3 = ${OBJS2:.cxx=.o} | |
77 OBJS4 = ${OBJS3:.d=.o} | |
78 OBJS5 = ${OBJS4:.erl=.beam} | |
2852
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
79 OBJS6 = ${OBJS5:.m=.o} |
2947
c79e239a816f
Same as for audacious.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2932
diff
changeset
|
80 OBJS7 = ${OBJS6:.py=.pyc} |
c79e239a816f
Same as for audacious.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2932
diff
changeset
|
81 OBJS += ${OBJS7:.xpm=.o} |
1763 | 82 |
83 .SILENT: | |
2974 | 84 .SUFFIXES: |
85 .SUFFIXES: .beam .c .cc .cxx .d .dep .erl .m .o .py .pyc .xpm | |
1909 | 86 .PHONY: all subdirs pre-depend depend install install-extra uninstall uninstall-extra clean distclean |
1763 | 87 |
1826
d7709de0882c
Fix dependencies and other parallel stuff.
Jonathan Schleifer <js@h3c.de>
parents:
1815
diff
changeset
|
88 all: |
1868 | 89 for i in subdirs depend ${STATIC_LIB} ${STATIC_LIB_NOINST} ${LIB} ${LIB_NOINST} ${PLUGIN} ${PLUGIN_NOINST} ${PROG} ${PROG_NOINST}; do \ |
1845 | 90 ${MAKE} ${MFLAGS} $$i || exit 1; \ |
1826
d7709de0882c
Fix dependencies and other parallel stuff.
Jonathan Schleifer <js@h3c.de>
parents:
1815
diff
changeset
|
91 done |
1763 | 92 |
93 subdirs: | |
94 for i in ${SUBDIRS}; do \ | |
95 ${DIR_ENTER}; \ | |
96 ${MAKE} ${MFLAGS} || exit 1; \ | |
97 ${DIR_LEAVE}; \ | |
98 done | |
99 | |
100 depend: pre-depend ${SRCS} | |
101 regen=0; \ | |
2852
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
102 deps=""; \ |
2034
a21cc1e45080
Update buildsys. Please test.
Jonathan Schleifer <js@h3c.de>
parents:
2015
diff
changeset
|
103 test -f .deps || regen=1; \ |
2852
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
104 for i in ${SRCS}; do \ |
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
105 case $$i in \ |
2947
c79e239a816f
Same as for audacious.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2932
diff
changeset
|
106 *.c) \ |
c79e239a816f
Same as for audacious.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2932
diff
changeset
|
107 test $$i -nt .deps && regen=1; \ |
c79e239a816f
Same as for audacious.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2932
diff
changeset
|
108 deps="$$deps $${i%.c}.dep"; \ |
c79e239a816f
Same as for audacious.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2932
diff
changeset
|
109 ;; \ |
c79e239a816f
Same as for audacious.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2932
diff
changeset
|
110 *.cc) \ |
2852
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
111 test $$i -nt .deps && regen=1; \ |
2947
c79e239a816f
Same as for audacious.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2932
diff
changeset
|
112 deps="$$deps $${i%.cc}.dep"; \ |
c79e239a816f
Same as for audacious.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2932
diff
changeset
|
113 ;; \ |
c79e239a816f
Same as for audacious.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2932
diff
changeset
|
114 *.cxx) \ |
c79e239a816f
Same as for audacious.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2932
diff
changeset
|
115 test $$i -nt .deps && regen=1; \ |
c79e239a816f
Same as for audacious.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2932
diff
changeset
|
116 deps="$$deps $${i%.cxx}.dep"; \ |
c79e239a816f
Same as for audacious.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2932
diff
changeset
|
117 ;; \ |
c79e239a816f
Same as for audacious.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2932
diff
changeset
|
118 *.m) \ |
c79e239a816f
Same as for audacious.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2932
diff
changeset
|
119 test $$i -nt .deps && regen=1; \ |
c79e239a816f
Same as for audacious.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2932
diff
changeset
|
120 deps="$$deps $${i%.m}.dep"; \ |
2852
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
121 ;; \ |
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
122 esac; \ |
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
123 done; \ |
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
124 if test x"$$regen" = x"1" -a x"$$deps" != "x"; then \ |
1815 | 125 ${DEPEND_STATUS}; \ |
2852
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
126 if ${MAKE} ${MFLAGS} $$deps; then \ |
2974 | 127 rm -f .deps; \ |
2852
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
128 cat $$deps >.deps; \ |
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
129 rm -f $$deps; \ |
2372
3799c5a932a9
Make dependency generation threaded.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2148
diff
changeset
|
130 ${DEPEND_OK}; \ |
3799c5a932a9
Make dependency generation threaded.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2148
diff
changeset
|
131 else \ |
2852
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
132 rm -f .deps $$deps; \ |
2372
3799c5a932a9
Make dependency generation threaded.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2148
diff
changeset
|
133 ${DEPEND_FAILED}; \ |
1826
d7709de0882c
Fix dependencies and other parallel stuff.
Jonathan Schleifer <js@h3c.de>
parents:
1815
diff
changeset
|
134 fi; \ |
1763 | 135 fi |
136 | |
2372
3799c5a932a9
Make dependency generation threaded.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2148
diff
changeset
|
137 .c.dep .cc.dep .cxx.dep .m.dep: |
2374
179821cb7dca
Fix a possible bug in dependency generation.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2373
diff
changeset
|
138 ${CPP} ${CPPFLAGS} -M $< >$@ |
2372
3799c5a932a9
Make dependency generation threaded.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2148
diff
changeset
|
139 |
3799c5a932a9
Make dependency generation threaded.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2148
diff
changeset
|
140 .d.dep: |
2852
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
141 .xpm.dep: |
2372
3799c5a932a9
Make dependency generation threaded.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2148
diff
changeset
|
142 |
1763 | 143 pre-depend: |
144 | |
1815 | 145 ${PROG} ${PROG_NOINST}: ${EXT_DEPS} ${OBJS} |
1763 | 146 ${LINK_STATUS} |
147 if ${LD} -o $@ ${OBJS} ${LDFLAGS} ${LIBS}; then \ | |
148 ${LINK_OK}; \ | |
149 else \ | |
150 ${LINK_FAILED}; \ | |
151 fi | |
152 | |
153 ${LIB} ${LIB_NOINST}: ${EXT_DEPS} ${OBJS} | |
154 ${LINK_STATUS} | |
155 if ${LD} -o $@ ${OBJS} ${LIB_LDFLAGS} ${LDFLAGS} ${LIBS}; then \ | |
156 ${LINK_OK}; \ | |
157 else \ | |
158 ${LINK_FAILED}; \ | |
159 fi | |
160 | |
2529
0bd07451d1d1
buildsys.mk.in: Fixed typo.
Jonathan Schleifer <js@webkeks.org>
parents:
2378
diff
changeset
|
161 ${PLUGIN} ${PLUGIN_NOINST}: ${EXT_DEPS} ${OBJS} |
1763 | 162 ${LINK_STATUS} |
163 if ${LD} -o $@ ${OBJS} ${PLUGIN_LDFLAGS} ${LDFLAGS} ${LIBS}; then \ | |
164 ${LINK_OK}; \ | |
165 else \ | |
166 ${LINK_FAILED}; \ | |
167 fi | |
168 | |
169 ${STATIC_LIB} ${STATIC_LIB_NOINST}: ${EXT_DEPS} ${OBJS} | |
170 ${LINK_STATUS} | |
2947
c79e239a816f
Same as for audacious.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2932
diff
changeset
|
171 if ${AR} cr $@ ${OBJS} && ${RANLIB} ${@}; then \ |
1763 | 172 ${LINK_OK}; \ |
173 else \ | |
174 ${LINK_FAILED}; \ | |
2947
c79e239a816f
Same as for audacious.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2932
diff
changeset
|
175 rm -f $@; \ |
1763 | 176 fi |
177 | |
178 .c.o: | |
179 ${COMPILE_STATUS} | |
180 if ${CC} ${CFLAGS} ${CPPFLAGS} -c -o $@ $<; then \ | |
181 ${COMPILE_OK}; \ | |
182 else \ | |
183 ${COMPILE_FAILED}; \ | |
184 fi | |
185 | |
186 .cc.o .cxx.o: | |
187 ${COMPILE_STATUS} | |
188 if ${CXX} ${CXXFLAGS} ${CPPFLAGS} -c -o $@ $<; then \ | |
189 ${COMPILE_OK}; \ | |
190 else \ | |
191 ${COMPILE_FAILED}; \ | |
192 fi | |
193 | |
194 .d.o: | |
195 ${COMPILE_STATUS} | |
1865 | 196 if test x"$(basename ${DC})" = x"dmd"; then \ |
1763 | 197 if ${DC} ${DFLAGS} -c -of$@ $<; then \ |
198 ${COMPILE_OK}; \ | |
199 else \ | |
200 ${COMPILE_FAILED}; \ | |
201 fi \ | |
202 else \ | |
203 if ${DC} ${DFLAGS} -c -o $@ $<; then \ | |
204 ${COMPILE_OK}; \ | |
205 else \ | |
206 ${COMPILE_FAILED}; \ | |
207 fi \ | |
208 fi | |
209 | |
210 .erl.beam: | |
211 ${COMPILE_STATUS} | |
212 if ${ERLC} ${ERLCFLAGS} -o $@ $<; then \ | |
213 ${COMPILE_OK}; \ | |
214 else \ | |
215 ${COMPILE_FAILED}; \ | |
216 fi | |
217 | |
218 .m.o: | |
219 ${COMPILE_STATUS} | |
220 if ${OBJC} ${OBJCFLAGS} ${CPPFLAGS} -c -o $@ $<; then \ | |
221 ${COMPILE_OK}; \ | |
222 else \ | |
223 ${COMPILE_FAILED}; \ | |
224 fi | |
225 | |
2947
c79e239a816f
Same as for audacious.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2932
diff
changeset
|
226 .py.pyc: |
c79e239a816f
Same as for audacious.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2932
diff
changeset
|
227 ${COMPILE_STATUS} |
c79e239a816f
Same as for audacious.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2932
diff
changeset
|
228 if ${PYTHON} ${PYTHON_FLAGS} -c "import py_compile; py_compile.compile('$<')"; then \ |
c79e239a816f
Same as for audacious.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2932
diff
changeset
|
229 ${COMPILE_OK}; \ |
c79e239a816f
Same as for audacious.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2932
diff
changeset
|
230 else \ |
c79e239a816f
Same as for audacious.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2932
diff
changeset
|
231 ${COMPILE_FAILED}; \ |
c79e239a816f
Same as for audacious.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2932
diff
changeset
|
232 fi |
c79e239a816f
Same as for audacious.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2932
diff
changeset
|
233 |
2852
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
234 .xpm.o: |
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
235 ${COMPILE_STATUS} |
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
236 if ${CC} ${CFLAGS} ${CPPFLAGS} -x c -c -o $@ $<; then \ |
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
237 ${COMPILE_OK}; \ |
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
238 else \ |
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
239 ${COMPILE_FAILED}; \ |
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
240 fi |
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
241 |
1763 | 242 install: ${LIB} ${STATIC_LIB} ${PLUGIN} ${PROG} install-extra |
243 for i in ${SUBDIRS}; do \ | |
244 ${DIR_ENTER}; \ | |
245 ${MAKE} ${MFLAGS} install || exit 1; \ | |
246 ${DIR_LEAVE}; \ | |
247 done | |
248 | |
249 for i in ${LIB}; do \ | |
250 ${INSTALL_STATUS}; \ | |
251 if ${MKDIR_P} ${DESTDIR}${libdir} && ${INSTALL_LIB}; then \ | |
252 ${INSTALL_OK}; \ | |
253 else \ | |
254 ${INSTALL_FAILED}; \ | |
255 fi \ | |
256 done | |
257 | |
258 for i in ${STATIC_LIB}; do \ | |
259 ${INSTALL_STATUS}; \ | |
1909 | 260 if ${MKDIR_P} ${DESTDIR}${libdir} && ${INSTALL} -m 644 $$i ${DESTDIR}${libdir}/$$i; then \ |
1763 | 261 ${INSTALL_OK}; \ |
262 else \ | |
263 ${INSTALL_FAILED}; \ | |
264 fi \ | |
265 done | |
266 | |
267 for i in ${PLUGIN}; do \ | |
268 ${INSTALL_STATUS}; \ | |
2006
a56a26a5f233
Revised the plugindir logic.
Eugene Paskevich <eugene@raptor.kiev.ua>
parents:
2003
diff
changeset
|
269 if ${MKDIR_P} ${DESTDIR}${plugindir} && ${INSTALL} -m 755 $$i ${DESTDIR}${plugindir}/$$i; then \ |
1763 | 270 ${INSTALL_OK}; \ |
271 else \ | |
272 ${INSTALL_FAILED}; \ | |
273 fi \ | |
274 done | |
275 | |
276 for i in ${DATA}; do \ | |
277 ${INSTALL_STATUS}; \ | |
278 if ${MKDIR_P} $$(dirname ${DESTDIR}${datadir}/${PACKAGE}/$$i) && ${INSTALL} -m 644 $$i ${DESTDIR}${datadir}/${PACKAGE}/$$i; then \ | |
279 ${INSTALL_OK}; \ | |
280 else \ | |
281 ${INSTALL_FAILED}; \ | |
282 fi \ | |
283 done | |
284 | |
285 for i in ${PROG}; do \ | |
286 ${INSTALL_STATUS}; \ | |
1877 | 287 if ${MKDIR_P} ${DESTDIR}${bindir} && ${INSTALL} -m 755 $$i ${DESTDIR}${bindir}/$$i; then \ |
1763 | 288 ${INSTALL_OK}; \ |
289 else \ | |
290 ${INSTALL_FAILED}; \ | |
291 fi \ | |
292 done | |
293 | |
294 for i in ${INCLUDES}; do \ | |
295 ${INSTALL_STATUS}; \ | |
296 if ${MKDIR_P} ${DESTDIR}${includedir}/${includesubdir} && ${INSTALL} -m 644 $$i ${DESTDIR}${includedir}/${includesubdir}/$$i; then \ | |
297 ${INSTALL_OK}; \ | |
298 else \ | |
299 ${INSTALL_FAILED}; \ | |
300 fi \ | |
301 done | |
302 | |
303 for i in ${MAN}; do \ | |
304 ${INSTALL_STATUS}; \ | |
305 if ${MKDIR_P} ${DESTDIR}${mandir}/${mansubdir} && ${INSTALL} -m 644 $$i ${DESTDIR}${mandir}/${mansubdir}/$$i; then \ | |
306 ${INSTALL_OK}; \ | |
307 else \ | |
308 ${INSTALL_FAILED}; \ | |
309 fi \ | |
310 done | |
311 | |
312 install-extra: | |
313 | |
314 uninstall: uninstall-extra | |
315 for i in ${SUBDIRS}; do \ | |
316 ${DIR_ENTER}; \ | |
317 ${MAKE} ${MFLAGS} uninstall || exit 1; \ | |
318 ${DIR_LEAVE}; \ | |
319 done | |
320 | |
321 for i in ${LIB}; do \ | |
1865 | 322 if test -f ${DESTDIR}${libdir}/$$i; then \ |
1763 | 323 if ${UNINSTALL_LIB}; then \ |
324 ${DELETE_OK}; \ | |
325 else \ | |
326 ${DELETE_FAILED}; \ | |
327 fi \ | |
328 fi; \ | |
329 done | |
330 | |
331 for i in ${STATIC_LIB}; do \ | |
1865 | 332 if test -f ${DESTDIR}${libdir}/$$i; then \ |
1763 | 333 if rm -f ${DESTDIR}${libdir}/$$i; then \ |
334 ${DELETE_OK}; \ | |
335 else \ | |
336 ${DELETE_FAILED}; \ | |
337 fi \ | |
338 fi \ | |
339 done | |
340 | |
341 for i in ${PLUGIN}; do \ | |
2006
a56a26a5f233
Revised the plugindir logic.
Eugene Paskevich <eugene@raptor.kiev.ua>
parents:
2003
diff
changeset
|
342 if test -f ${DESTDIR}${plugindir}/$$i; then \ |
a56a26a5f233
Revised the plugindir logic.
Eugene Paskevich <eugene@raptor.kiev.ua>
parents:
2003
diff
changeset
|
343 if rm -f ${DESTDIR}${plugindir}/$$i; then \ |
1763 | 344 ${DELETE_OK}; \ |
345 else \ | |
346 ${DELETE_FAILED}; \ | |
347 fi \ | |
348 fi \ | |
349 done | |
2034
a21cc1e45080
Update buildsys. Please test.
Jonathan Schleifer <js@h3c.de>
parents:
2015
diff
changeset
|
350 -rmdir ${DESTDIR}${plugindir} >/dev/null 2>&1 |
1763 | 351 |
352 for i in ${DATA}; do \ | |
1865 | 353 if test -f ${DESTDIR}${datadir}/${PACKAGE}/$$i; then \ |
1763 | 354 if rm -f ${DESTDIR}${datadir}/${PACKAGE}/$$i; then \ |
355 ${DELETE_OK}; \ | |
356 else \ | |
357 ${DELETE_FAILED}; \ | |
358 fi \ | |
359 fi \ | |
360 done | |
361 | |
362 for i in ${PROG}; do \ | |
1865 | 363 if test -f ${DESTDIR}${bindir}/$$i; then \ |
1763 | 364 if rm -f ${DESTDIR}${bindir}/$$i; then \ |
365 ${DELETE_OK}; \ | |
366 else \ | |
367 ${DELETE_FAILED}; \ | |
368 fi \ | |
369 fi \ | |
370 done | |
371 | |
372 for i in ${INCLUDES}; do \ | |
1865 | 373 if test -f ${DESTDIR}${includedir}/${includesubdir}/$$i; then \ |
1763 | 374 if rm -f ${DESTDIR}${includedir}/${includesubdir}/$$i; then \ |
375 ${DELETE_OK}; \ | |
376 else \ | |
377 ${DELETE_FAILED}; \ | |
378 fi \ | |
379 fi \ | |
380 done | |
381 -rmdir ${DESTDIR}${includedir}/${includesubdir} >/dev/null 2>&1 | |
382 | |
383 for i in ${MAN}; do \ | |
1865 | 384 if test -f ${DESTDIR}${mandir}/${mansubdir}/$$i; then \ |
1763 | 385 if rm -f ${DESTDIR}${mandir}/${mansubdir}/$$i; then \ |
386 ${DELETE_OK}; \ | |
387 else \ | |
388 ${DELETE_FAILED}; \ | |
389 fi \ | |
390 fi \ | |
391 done | |
392 | |
393 uninstall-extra: | |
394 | |
395 clean: | |
396 for i in ${SUBDIRS}; do \ | |
397 ${DIR_ENTER}; \ | |
398 ${MAKE} ${MFLAGS} clean || exit 1; \ | |
399 ${DIR_LEAVE}; \ | |
400 done | |
2974 | 401 |
2374
179821cb7dca
Fix a possible bug in dependency generation.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2373
diff
changeset
|
402 for i in ${OBJS} ${CLEAN} ${CLEAN_LIB} .deps ${DEPS}; do \ |
1865 | 403 if test -f $$i -o -d $$i; then \ |
1763 | 404 if rm -fr $$i; then \ |
405 ${DELETE_OK}; \ | |
406 else \ | |
407 ${DELETE_FAILED}; \ | |
408 fi \ | |
409 fi \ | |
410 done | |
411 | |
412 distclean: clean | |
413 for i in ${SUBDIRS}; do \ | |
414 ${DIR_ENTER}; \ | |
415 ${MAKE} ${MFLAGS} distclean || exit 1; \ | |
416 ${DIR_LEAVE}; \ | |
417 done | |
2974 | 418 |
1973
f86cb7fc1d4f
Add -pipe -Wall if gcc and fix a few warnings.
Jonathan Schleifer <js@h3c.de>
parents:
1918
diff
changeset
|
419 for i in ${PROG} ${PROG_NOINST} ${LIB} ${LIB_NOINST} ${STATIC_LIB} ${STATIC_LIB_NOINST} ${PLUGIN} ${PLUGIN_NOINST} ${DISTCLEAN} *~; do \ |
1865 | 420 if test -f $$i -o -d $$i; then \ |
1763 | 421 if rm -fr $$i; then \ |
422 ${DELETE_OK}; \ | |
423 else \ | |
424 ${DELETE_FAILED}; \ | |
425 fi \ | |
426 fi \ | |
427 done | |
428 | |
2034
a21cc1e45080
Update buildsys. Please test.
Jonathan Schleifer <js@h3c.de>
parents:
2015
diff
changeset
|
429 DIR_ENTER = printf "\033[K\033[0;36mEntering directory \033[1;36m$$i\033[0;36m.\033[0m\n"; cd $$i || exit 1 |
a21cc1e45080
Update buildsys. Please test.
Jonathan Schleifer <js@h3c.de>
parents:
2015
diff
changeset
|
430 DIR_LEAVE = printf "\033[K\033[0;36mLeaving directory \033[1;36m$$i\033[0;36m.\033[0m\n"; cd .. || exit 1 |
a21cc1e45080
Update buildsys. Please test.
Jonathan Schleifer <js@h3c.de>
parents:
2015
diff
changeset
|
431 DEPEND_STATUS = printf "\033[K\033[0;33mGenerating dependencies...\033[0m\r" |
a21cc1e45080
Update buildsys. Please test.
Jonathan Schleifer <js@h3c.de>
parents:
2015
diff
changeset
|
432 DEPEND_OK = printf "\033[K\033[0;32mSuccessfully generated dependencies.\033[0m\n" |
a21cc1e45080
Update buildsys. Please test.
Jonathan Schleifer <js@h3c.de>
parents:
2015
diff
changeset
|
433 DEPEND_FAILED = printf "\033[K\033[0;31mFailed to generate dependencies!\033[0m\n"; exit 1 |
a21cc1e45080
Update buildsys. Please test.
Jonathan Schleifer <js@h3c.de>
parents:
2015
diff
changeset
|
434 COMPILE_STATUS = printf "\033[K\033[0;33mCompiling \033[1;33m$<\033[0;33m...\033[0m\r" |
a21cc1e45080
Update buildsys. Please test.
Jonathan Schleifer <js@h3c.de>
parents:
2015
diff
changeset
|
435 COMPILE_OK = printf "\033[K\033[0;32mSuccessfully compiled \033[1;32m$<\033[0;32m.\033[0m\n" |
a21cc1e45080
Update buildsys. Please test.
Jonathan Schleifer <js@h3c.de>
parents:
2015
diff
changeset
|
436 COMPILE_FAILED = printf "\033[K\033[0;31mFailed to compile \033[1;31m$<\033[0;31m!\033[0m\n"; exit 1 |
a21cc1e45080
Update buildsys. Please test.
Jonathan Schleifer <js@h3c.de>
parents:
2015
diff
changeset
|
437 LINK_STATUS = printf "\033[K\033[0;33mLinking \033[1;33m$@\033[0;33m...\033[0m\r" |
a21cc1e45080
Update buildsys. Please test.
Jonathan Schleifer <js@h3c.de>
parents:
2015
diff
changeset
|
438 LINK_OK = printf "\033[K\033[0;32mSuccessfully linked \033[1;32m$@\033[0;32m.\033[0m\n" |
a21cc1e45080
Update buildsys. Please test.
Jonathan Schleifer <js@h3c.de>
parents:
2015
diff
changeset
|
439 LINK_FAILED = printf "\033[K\033[0;31mFailed to link \033[1;31m$@\033[0;31m!\033[0m\n"; exit 1 |
a21cc1e45080
Update buildsys. Please test.
Jonathan Schleifer <js@h3c.de>
parents:
2015
diff
changeset
|
440 INSTALL_STATUS = printf "\033[K\033[0;33mInstalling \033[1;33m$$i\033[0;33m...\033[0m\r" |
a21cc1e45080
Update buildsys. Please test.
Jonathan Schleifer <js@h3c.de>
parents:
2015
diff
changeset
|
441 INSTALL_OK = printf "\033[K\033[0;32mSuccessfully installed \033[1;32m$$i\033[0;32m.\033[0m\n" |
a21cc1e45080
Update buildsys. Please test.
Jonathan Schleifer <js@h3c.de>
parents:
2015
diff
changeset
|
442 INSTALL_FAILED = printf "\033[K\033[0;31mFailed to install \033[1;31m$$i\033[0;31m!\033[0m\n"; exit 1 |
a21cc1e45080
Update buildsys. Please test.
Jonathan Schleifer <js@h3c.de>
parents:
2015
diff
changeset
|
443 DELETE_OK = printf "\033[K\033[0;34mDeleted \033[1;34m$$i\033[0;34m.\033[0m\n" |
a21cc1e45080
Update buildsys. Please test.
Jonathan Schleifer <js@h3c.de>
parents:
2015
diff
changeset
|
444 DELETE_FAILED = printf "\033[K\033[0;31mFailed to delete \033[1;31m$$i\033[0;31m!\033[0m\n"; exit 1 |
1763 | 445 |
2978
a68a51138f4d
Updated buildsys.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2974
diff
changeset
|
446 include .deps |