Mercurial > audlegacy-plugins
annotate buildsys.mk.in @ 2939:3877a02782bb
Adjust probing again.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 22 Sep 2008 06:39:32 +0300 |
parents | f64edfcbce87 |
children | c79e239a816f |
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} | |
2800
ea4e97a98914
a fix for automatic plugin _CFGIDs to be generated
Andrew O. Shadoura <bugzilla@tut.by>
parents:
2529
diff
changeset
|
32 TR = @TR@ |
1763 | 33 CFLAGS = @CFLAGS@ |
34 CXXFLAGS = @CXXFLAGS@ | |
35 CPPFLAGS = @CPPFLAGS@ | |
36 DFLAGS = @DFLAGS@ | |
37 ERLCFLAGS = @ERLCFLAGS@ | |
38 OBJCFLAGS = @OBJCFLAGS@ | |
39 LDFLAGS = @LDFLAGS@ | |
40 LIBS = @LIBS@ | |
1909 | 41 PROG_IMPLIB_NEEDED = @PROG_IMPLIB_NEEDED@ |
42 PROG_IMPLIB_LDFLAGS = @PROG_IMPLIB_LDFLAGS@ | |
1879
81cdc01db60e
Update buildsys (adds ${PROG_SUFFIX}).
Jonathan Schleifer <js@h3c.de>
parents:
1877
diff
changeset
|
43 PROG_SUFFIX = @EXEEXT@ |
1763 | 44 LIB_CPPFLAGS = @LIB_CPPFLAGS@ |
45 LIB_CFLAGS = @LIB_CFLAGS@ | |
46 LIB_LDFLAGS = @LIB_LDFLAGS@ | |
47 LIB_PREFIX = @LIB_PREFIX@ | |
48 LIB_SUFFIX = @LIB_SUFFIX@ | |
2932
f64edfcbce87
Fix PLUGIN_DEFNAME generation in case of names with hyphens.
Matti Hamalainen <ccr@tnsp.org>
parents:
2877
diff
changeset
|
49 PLUGIN_DEFNAME := `echo ${subst ${PLUGIN_SUFFIX},,${PLUGIN}} | tr '[:lower:]' '[:upper:]' | tr '-' '_'` |
2800
ea4e97a98914
a fix for automatic plugin _CFGIDs to be generated
Andrew O. Shadoura <bugzilla@tut.by>
parents:
2529
diff
changeset
|
50 PLUGIN_CPPFLAGS = @PLUGIN_CPPFLAGS@ -D${PLUGIN_DEFNAME}_CFGID=\"${subst ${PLUGIN_SUFFIX},,${PLUGIN}}\" |
1763 | 51 PLUGIN_CFLAGS = @PLUGIN_CFLAGS@ |
52 PLUGIN_LDFLAGS = @PLUGIN_LDFLAGS@ | |
53 PLUGIN_SUFFIX = @PLUGIN_SUFFIX@ | |
54 INSTALL_LIB = @INSTALL_LIB@ | |
55 UNINSTALL_LIB = @UNINSTALL_LIB@ | |
56 CLEAN_LIB = @CLEAN_LIB@ | |
57 LN_S = @LN_S@ | |
58 MKDIR_P = mkdir -p | |
1863 | 59 INSTALL = install |
1763 | 60 SHELL = @SHELL@ |
61 prefix = @prefix@ | |
62 exec_prefix = @exec_prefix@ | |
63 bindir = @bindir@ | |
64 libdir = @libdir@ | |
2034
a21cc1e45080
Update buildsys. Please test.
Jonathan Schleifer <js@h3c.de>
parents:
2015
diff
changeset
|
65 plugindir ?= ${libdir}/${PACKAGE} |
1763 | 66 datarootdir = @datarootdir@ |
67 datadir = @datadir@ | |
68 includedir = @includedir@ | |
69 includesubdir ?= ${PACKAGE} | |
70 mandir = @mandir@ | |
71 mansubdir ?= man1 | |
72 | |
73 OBJS1 = ${SRCS:.c=.o} | |
74 OBJS2 = ${OBJS1:.cc=.o} | |
75 OBJS3 = ${OBJS2:.cxx=.o} | |
76 OBJS4 = ${OBJS3:.d=.o} | |
77 OBJS5 = ${OBJS4:.erl=.beam} | |
2852
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
78 OBJS6 = ${OBJS5:.m=.o} |
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
79 OBJS += ${OBJS6:.xpm=.o} |
1763 | 80 |
81 .SILENT: | |
2852
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
82 .SUFFIXES: .beam .c .cc .cxx .d .dep .erl .m .xpm |
1909 | 83 .PHONY: all subdirs pre-depend depend install install-extra uninstall uninstall-extra clean distclean |
1763 | 84 |
1826
d7709de0882c
Fix dependencies and other parallel stuff.
Jonathan Schleifer <js@h3c.de>
parents:
1815
diff
changeset
|
85 all: |
1868 | 86 for i in subdirs depend ${STATIC_LIB} ${STATIC_LIB_NOINST} ${LIB} ${LIB_NOINST} ${PLUGIN} ${PLUGIN_NOINST} ${PROG} ${PROG_NOINST}; do \ |
1845 | 87 ${MAKE} ${MFLAGS} $$i || exit 1; \ |
1826
d7709de0882c
Fix dependencies and other parallel stuff.
Jonathan Schleifer <js@h3c.de>
parents:
1815
diff
changeset
|
88 done |
1763 | 89 |
90 subdirs: | |
91 for i in ${SUBDIRS}; do \ | |
92 ${DIR_ENTER}; \ | |
93 ${MAKE} ${MFLAGS} || exit 1; \ | |
94 ${DIR_LEAVE}; \ | |
95 done | |
96 | |
97 depend: pre-depend ${SRCS} | |
98 regen=0; \ | |
2852
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
99 deps=""; \ |
2034
a21cc1e45080
Update buildsys. Please test.
Jonathan Schleifer <js@h3c.de>
parents:
2015
diff
changeset
|
100 test -f .deps || regen=1; \ |
2852
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
101 for i in ${SRCS}; do \ |
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
102 case $$i in \ |
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
103 *.o) \ |
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
104 test $$i -nt .deps && regen=1; \ |
2877
74c302381136
fixed buildsys dependency resolver
Andrew O. Shadoura <bugzilla@tut.by>
parents:
2852
diff
changeset
|
105 deps="$${deps} $${i%.o}.dep"; \ |
2852
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
106 ;; \ |
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
107 esac; \ |
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
108 done; \ |
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
109 if test x"$$regen" = x"1" -a x"$$deps" != "x"; then \ |
1815 | 110 ${DEPEND_STATUS}; \ |
2372
3799c5a932a9
Make dependency generation threaded.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2148
diff
changeset
|
111 rm -f .deps; \ |
2852
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
112 if ${MAKE} ${MFLAGS} $$deps; then \ |
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
113 cat $$deps >.deps; \ |
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
114 rm -f $$deps; \ |
2372
3799c5a932a9
Make dependency generation threaded.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2148
diff
changeset
|
115 ${DEPEND_OK}; \ |
3799c5a932a9
Make dependency generation threaded.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2148
diff
changeset
|
116 else \ |
2852
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
117 rm -f .deps $$deps; \ |
2372
3799c5a932a9
Make dependency generation threaded.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2148
diff
changeset
|
118 ${DEPEND_FAILED}; \ |
1826
d7709de0882c
Fix dependencies and other parallel stuff.
Jonathan Schleifer <js@h3c.de>
parents:
1815
diff
changeset
|
119 fi; \ |
1763 | 120 fi |
121 | |
2372
3799c5a932a9
Make dependency generation threaded.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2148
diff
changeset
|
122 .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
|
123 ${CPP} ${CPPFLAGS} -M $< >$@ |
2372
3799c5a932a9
Make dependency generation threaded.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2148
diff
changeset
|
124 |
3799c5a932a9
Make dependency generation threaded.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2148
diff
changeset
|
125 .d.dep: |
2852
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
126 .xpm.dep: |
2372
3799c5a932a9
Make dependency generation threaded.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2148
diff
changeset
|
127 |
1763 | 128 pre-depend: |
129 | |
1815 | 130 ${PROG} ${PROG_NOINST}: ${EXT_DEPS} ${OBJS} |
1763 | 131 ${LINK_STATUS} |
132 if ${LD} -o $@ ${OBJS} ${LDFLAGS} ${LIBS}; then \ | |
133 ${LINK_OK}; \ | |
134 else \ | |
135 ${LINK_FAILED}; \ | |
136 fi | |
137 | |
138 ${LIB} ${LIB_NOINST}: ${EXT_DEPS} ${OBJS} | |
139 ${LINK_STATUS} | |
140 if ${LD} -o $@ ${OBJS} ${LIB_LDFLAGS} ${LDFLAGS} ${LIBS}; then \ | |
141 ${LINK_OK}; \ | |
142 else \ | |
143 ${LINK_FAILED}; \ | |
144 fi | |
145 | |
2529
0bd07451d1d1
buildsys.mk.in: Fixed typo.
Jonathan Schleifer <js@webkeks.org>
parents:
2378
diff
changeset
|
146 ${PLUGIN} ${PLUGIN_NOINST}: ${EXT_DEPS} ${OBJS} |
1763 | 147 ${LINK_STATUS} |
148 if ${LD} -o $@ ${OBJS} ${PLUGIN_LDFLAGS} ${LDFLAGS} ${LIBS}; then \ | |
149 ${LINK_OK}; \ | |
150 else \ | |
151 ${LINK_FAILED}; \ | |
152 fi | |
153 | |
154 ${STATIC_LIB} ${STATIC_LIB_NOINST}: ${EXT_DEPS} ${OBJS} | |
155 ${LINK_STATUS} | |
156 if ${AR} cr $@ ${OBJS}; then \ | |
157 ${LINK_OK}; \ | |
158 else \ | |
159 ${LINK_FAILED}; \ | |
160 fi | |
161 | |
162 .c.o: | |
163 ${COMPILE_STATUS} | |
164 if ${CC} ${CFLAGS} ${CPPFLAGS} -c -o $@ $<; then \ | |
165 ${COMPILE_OK}; \ | |
166 else \ | |
167 ${COMPILE_FAILED}; \ | |
168 fi | |
169 | |
170 .cc.o .cxx.o: | |
171 ${COMPILE_STATUS} | |
172 if ${CXX} ${CXXFLAGS} ${CPPFLAGS} -c -o $@ $<; then \ | |
173 ${COMPILE_OK}; \ | |
174 else \ | |
175 ${COMPILE_FAILED}; \ | |
176 fi | |
177 | |
178 .d.o: | |
179 ${COMPILE_STATUS} | |
1865 | 180 if test x"$(basename ${DC})" = x"dmd"; then \ |
1763 | 181 if ${DC} ${DFLAGS} -c -of$@ $<; then \ |
182 ${COMPILE_OK}; \ | |
183 else \ | |
184 ${COMPILE_FAILED}; \ | |
185 fi \ | |
186 else \ | |
187 if ${DC} ${DFLAGS} -c -o $@ $<; then \ | |
188 ${COMPILE_OK}; \ | |
189 else \ | |
190 ${COMPILE_FAILED}; \ | |
191 fi \ | |
192 fi | |
193 | |
194 .erl.beam: | |
195 ${COMPILE_STATUS} | |
196 if ${ERLC} ${ERLCFLAGS} -o $@ $<; then \ | |
197 ${COMPILE_OK}; \ | |
198 else \ | |
199 ${COMPILE_FAILED}; \ | |
200 fi | |
201 | |
202 .m.o: | |
203 ${COMPILE_STATUS} | |
204 if ${OBJC} ${OBJCFLAGS} ${CPPFLAGS} -c -o $@ $<; then \ | |
205 ${COMPILE_OK}; \ | |
206 else \ | |
207 ${COMPILE_FAILED}; \ | |
208 fi | |
209 | |
2852
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
210 .xpm.o: |
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
211 ${COMPILE_STATUS} |
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
212 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
|
213 ${COMPILE_OK}; \ |
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
214 else \ |
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
215 ${COMPILE_FAILED}; \ |
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
216 fi |
f2bec2d589d6
Parallel dependency resolution by Jonathan Schleifer.
Tony Vroon <chainsaw@gentoo.org>
parents:
2803
diff
changeset
|
217 |
1763 | 218 install: ${LIB} ${STATIC_LIB} ${PLUGIN} ${PROG} install-extra |
219 for i in ${SUBDIRS}; do \ | |
220 ${DIR_ENTER}; \ | |
221 ${MAKE} ${MFLAGS} install || exit 1; \ | |
222 ${DIR_LEAVE}; \ | |
223 done | |
224 | |
225 for i in ${LIB}; do \ | |
226 ${INSTALL_STATUS}; \ | |
227 if ${MKDIR_P} ${DESTDIR}${libdir} && ${INSTALL_LIB}; then \ | |
228 ${INSTALL_OK}; \ | |
229 else \ | |
230 ${INSTALL_FAILED}; \ | |
231 fi \ | |
232 done | |
233 | |
234 for i in ${STATIC_LIB}; do \ | |
235 ${INSTALL_STATUS}; \ | |
1909 | 236 if ${MKDIR_P} ${DESTDIR}${libdir} && ${INSTALL} -m 644 $$i ${DESTDIR}${libdir}/$$i; then \ |
1763 | 237 ${INSTALL_OK}; \ |
238 else \ | |
239 ${INSTALL_FAILED}; \ | |
240 fi \ | |
241 done | |
242 | |
243 for i in ${PLUGIN}; do \ | |
244 ${INSTALL_STATUS}; \ | |
2006
a56a26a5f233
Revised the plugindir logic.
Eugene Paskevich <eugene@raptor.kiev.ua>
parents:
2003
diff
changeset
|
245 if ${MKDIR_P} ${DESTDIR}${plugindir} && ${INSTALL} -m 755 $$i ${DESTDIR}${plugindir}/$$i; then \ |
1763 | 246 ${INSTALL_OK}; \ |
247 else \ | |
248 ${INSTALL_FAILED}; \ | |
249 fi \ | |
250 done | |
251 | |
252 for i in ${DATA}; do \ | |
253 ${INSTALL_STATUS}; \ | |
254 if ${MKDIR_P} $$(dirname ${DESTDIR}${datadir}/${PACKAGE}/$$i) && ${INSTALL} -m 644 $$i ${DESTDIR}${datadir}/${PACKAGE}/$$i; then \ | |
255 ${INSTALL_OK}; \ | |
256 else \ | |
257 ${INSTALL_FAILED}; \ | |
258 fi \ | |
259 done | |
260 | |
261 for i in ${PROG}; do \ | |
262 ${INSTALL_STATUS}; \ | |
1877 | 263 if ${MKDIR_P} ${DESTDIR}${bindir} && ${INSTALL} -m 755 $$i ${DESTDIR}${bindir}/$$i; then \ |
1763 | 264 ${INSTALL_OK}; \ |
265 else \ | |
266 ${INSTALL_FAILED}; \ | |
267 fi \ | |
268 done | |
269 | |
270 for i in ${INCLUDES}; do \ | |
271 ${INSTALL_STATUS}; \ | |
272 if ${MKDIR_P} ${DESTDIR}${includedir}/${includesubdir} && ${INSTALL} -m 644 $$i ${DESTDIR}${includedir}/${includesubdir}/$$i; then \ | |
273 ${INSTALL_OK}; \ | |
274 else \ | |
275 ${INSTALL_FAILED}; \ | |
276 fi \ | |
277 done | |
278 | |
279 for i in ${MAN}; do \ | |
280 ${INSTALL_STATUS}; \ | |
281 if ${MKDIR_P} ${DESTDIR}${mandir}/${mansubdir} && ${INSTALL} -m 644 $$i ${DESTDIR}${mandir}/${mansubdir}/$$i; then \ | |
282 ${INSTALL_OK}; \ | |
283 else \ | |
284 ${INSTALL_FAILED}; \ | |
285 fi \ | |
286 done | |
287 | |
288 install-extra: | |
289 | |
290 uninstall: uninstall-extra | |
291 for i in ${SUBDIRS}; do \ | |
292 ${DIR_ENTER}; \ | |
293 ${MAKE} ${MFLAGS} uninstall || exit 1; \ | |
294 ${DIR_LEAVE}; \ | |
295 done | |
296 | |
297 for i in ${LIB}; do \ | |
1865 | 298 if test -f ${DESTDIR}${libdir}/$$i; then \ |
1763 | 299 if ${UNINSTALL_LIB}; then \ |
300 ${DELETE_OK}; \ | |
301 else \ | |
302 ${DELETE_FAILED}; \ | |
303 fi \ | |
304 fi; \ | |
305 done | |
306 | |
307 for i in ${STATIC_LIB}; do \ | |
1865 | 308 if test -f ${DESTDIR}${libdir}/$$i; then \ |
1763 | 309 if rm -f ${DESTDIR}${libdir}/$$i; then \ |
310 ${DELETE_OK}; \ | |
311 else \ | |
312 ${DELETE_FAILED}; \ | |
313 fi \ | |
314 fi \ | |
315 done | |
316 | |
317 for i in ${PLUGIN}; do \ | |
2006
a56a26a5f233
Revised the plugindir logic.
Eugene Paskevich <eugene@raptor.kiev.ua>
parents:
2003
diff
changeset
|
318 if test -f ${DESTDIR}${plugindir}/$$i; then \ |
a56a26a5f233
Revised the plugindir logic.
Eugene Paskevich <eugene@raptor.kiev.ua>
parents:
2003
diff
changeset
|
319 if rm -f ${DESTDIR}${plugindir}/$$i; then \ |
1763 | 320 ${DELETE_OK}; \ |
321 else \ | |
322 ${DELETE_FAILED}; \ | |
323 fi \ | |
324 fi \ | |
325 done | |
2034
a21cc1e45080
Update buildsys. Please test.
Jonathan Schleifer <js@h3c.de>
parents:
2015
diff
changeset
|
326 -rmdir ${DESTDIR}${plugindir} >/dev/null 2>&1 |
1763 | 327 |
328 for i in ${DATA}; do \ | |
1865 | 329 if test -f ${DESTDIR}${datadir}/${PACKAGE}/$$i; then \ |
1763 | 330 if rm -f ${DESTDIR}${datadir}/${PACKAGE}/$$i; then \ |
331 ${DELETE_OK}; \ | |
332 else \ | |
333 ${DELETE_FAILED}; \ | |
334 fi \ | |
335 fi \ | |
336 done | |
337 | |
338 for i in ${PROG}; do \ | |
1865 | 339 if test -f ${DESTDIR}${bindir}/$$i; then \ |
1763 | 340 if rm -f ${DESTDIR}${bindir}/$$i; then \ |
341 ${DELETE_OK}; \ | |
342 else \ | |
343 ${DELETE_FAILED}; \ | |
344 fi \ | |
345 fi \ | |
346 done | |
347 | |
348 for i in ${INCLUDES}; do \ | |
1865 | 349 if test -f ${DESTDIR}${includedir}/${includesubdir}/$$i; then \ |
1763 | 350 if rm -f ${DESTDIR}${includedir}/${includesubdir}/$$i; then \ |
351 ${DELETE_OK}; \ | |
352 else \ | |
353 ${DELETE_FAILED}; \ | |
354 fi \ | |
355 fi \ | |
356 done | |
357 -rmdir ${DESTDIR}${includedir}/${includesubdir} >/dev/null 2>&1 | |
358 | |
359 for i in ${MAN}; do \ | |
1865 | 360 if test -f ${DESTDIR}${mandir}/${mansubdir}/$$i; then \ |
1763 | 361 if rm -f ${DESTDIR}${mandir}/${mansubdir}/$$i; then \ |
362 ${DELETE_OK}; \ | |
363 else \ | |
364 ${DELETE_FAILED}; \ | |
365 fi \ | |
366 fi \ | |
367 done | |
368 | |
369 uninstall-extra: | |
370 | |
371 clean: | |
372 for i in ${SUBDIRS}; do \ | |
373 ${DIR_ENTER}; \ | |
374 ${MAKE} ${MFLAGS} clean || exit 1; \ | |
375 ${DIR_LEAVE}; \ | |
376 done | |
377 | |
2374
179821cb7dca
Fix a possible bug in dependency generation.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2373
diff
changeset
|
378 for i in ${OBJS} ${CLEAN} ${CLEAN_LIB} .deps ${DEPS}; do \ |
1865 | 379 if test -f $$i -o -d $$i; then \ |
1763 | 380 if rm -fr $$i; then \ |
381 ${DELETE_OK}; \ | |
382 else \ | |
383 ${DELETE_FAILED}; \ | |
384 fi \ | |
385 fi \ | |
386 done | |
387 | |
388 distclean: clean | |
389 for i in ${SUBDIRS}; do \ | |
390 ${DIR_ENTER}; \ | |
391 ${MAKE} ${MFLAGS} distclean || exit 1; \ | |
392 ${DIR_LEAVE}; \ | |
393 done | |
394 | |
1973
f86cb7fc1d4f
Add -pipe -Wall if gcc and fix a few warnings.
Jonathan Schleifer <js@h3c.de>
parents:
1918
diff
changeset
|
395 for i in ${PROG} ${PROG_NOINST} ${LIB} ${LIB_NOINST} ${STATIC_LIB} ${STATIC_LIB_NOINST} ${PLUGIN} ${PLUGIN_NOINST} ${DISTCLEAN} *~; do \ |
1865 | 396 if test -f $$i -o -d $$i; then \ |
1763 | 397 if rm -fr $$i; then \ |
398 ${DELETE_OK}; \ | |
399 else \ | |
400 ${DELETE_FAILED}; \ | |
401 fi \ | |
402 fi \ | |
403 done | |
404 | |
2034
a21cc1e45080
Update buildsys. Please test.
Jonathan Schleifer <js@h3c.de>
parents:
2015
diff
changeset
|
405 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
|
406 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
|
407 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
|
408 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
|
409 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
|
410 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
|
411 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
|
412 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
|
413 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
|
414 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
|
415 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
|
416 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
|
417 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
|
418 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
|
419 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
|
420 DELETE_FAILED = printf "\033[K\033[0;31mFailed to delete \033[1;31m$$i\033[0;31m!\033[0m\n"; exit 1 |
1763 | 421 |
422 -include .deps |