Mercurial > audlegacy-plugins
annotate buildsys.mk.in @ 2806:9e06acde819e
branch merge
author | Andrew O. Shadoura <bugzilla@tut.by> |
---|---|
date | Sat, 12 Jul 2008 03:39:55 +0300 |
parents | 720e33771f24 |
children | f2bec2d589d6 |
rev | line source |
---|---|
1763 | 1 # |
2147 | 2 # Copyright (c) 2007, 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@ | |
2803
720e33771f24
don't translate trailing \n
Andrew O. Shadoura <bugzilla@tut.by>
parents:
2802
diff
changeset
|
49 PLUGIN_DEFNAME = `echo -n ${subst ${PLUGIN_SUFFIX},,${PLUGIN}} | tr [:lower:] [:upper:] | tr -C [:alnum:] _` |
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} | |
78 OBJS += ${OBJS5:.m=.o} | |
2372
3799c5a932a9
Make dependency generation threaded.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2148
diff
changeset
|
79 DEPS += ${OBJS:.o=.dep} |
1763 | 80 |
81 .SILENT: | |
2372
3799c5a932a9
Make dependency generation threaded.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2148
diff
changeset
|
82 .SUFFIXES: .beam .c .cc .cxx .d .dep .erl .m |
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; \ | |
2034
a21cc1e45080
Update buildsys. Please test.
Jonathan Schleifer <js@h3c.de>
parents:
2015
diff
changeset
|
99 test -f .deps || regen=1; \ |
1865 | 100 for i in ${SRCS}; do test $$i -nt .deps && regen=1; done; \ |
2373
77cd6da06def
Fix possible infinite loop in dependency generation.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2372
diff
changeset
|
101 if test x"$$regen" = x"1" -a x"${DEPS}" != "x"; then \ |
1815 | 102 ${DEPEND_STATUS}; \ |
2372
3799c5a932a9
Make dependency generation threaded.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2148
diff
changeset
|
103 rm -f .deps; \ |
3799c5a932a9
Make dependency generation threaded.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2148
diff
changeset
|
104 if ${MAKE} ${MFLAGS} ${DEPS}; then \ |
2374
179821cb7dca
Fix a possible bug in dependency generation.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2373
diff
changeset
|
105 cat ${DEPS} >.deps; \ |
179821cb7dca
Fix a possible bug in dependency generation.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2373
diff
changeset
|
106 rm -f ${DEPS}; \ |
2372
3799c5a932a9
Make dependency generation threaded.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2148
diff
changeset
|
107 ${DEPEND_OK}; \ |
3799c5a932a9
Make dependency generation threaded.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2148
diff
changeset
|
108 else \ |
2374
179821cb7dca
Fix a possible bug in dependency generation.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2373
diff
changeset
|
109 rm -f .deps ${DEPS}; \ |
2372
3799c5a932a9
Make dependency generation threaded.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2148
diff
changeset
|
110 ${DEPEND_FAILED}; \ |
1826
d7709de0882c
Fix dependencies and other parallel stuff.
Jonathan Schleifer <js@h3c.de>
parents:
1815
diff
changeset
|
111 fi; \ |
1763 | 112 fi |
113 | |
2372
3799c5a932a9
Make dependency generation threaded.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2148
diff
changeset
|
114 .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
|
115 ${CPP} ${CPPFLAGS} -M $< >$@ |
2372
3799c5a932a9
Make dependency generation threaded.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2148
diff
changeset
|
116 |
3799c5a932a9
Make dependency generation threaded.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2148
diff
changeset
|
117 .d.dep: |
3799c5a932a9
Make dependency generation threaded.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2148
diff
changeset
|
118 |
1763 | 119 pre-depend: |
120 | |
1815 | 121 ${PROG} ${PROG_NOINST}: ${EXT_DEPS} ${OBJS} |
1763 | 122 ${LINK_STATUS} |
123 if ${LD} -o $@ ${OBJS} ${LDFLAGS} ${LIBS}; then \ | |
124 ${LINK_OK}; \ | |
125 else \ | |
126 ${LINK_FAILED}; \ | |
127 fi | |
128 | |
129 ${LIB} ${LIB_NOINST}: ${EXT_DEPS} ${OBJS} | |
130 ${LINK_STATUS} | |
131 if ${LD} -o $@ ${OBJS} ${LIB_LDFLAGS} ${LDFLAGS} ${LIBS}; then \ | |
132 ${LINK_OK}; \ | |
133 else \ | |
134 ${LINK_FAILED}; \ | |
135 fi | |
136 | |
2529
0bd07451d1d1
buildsys.mk.in: Fixed typo.
Jonathan Schleifer <js@webkeks.org>
parents:
2378
diff
changeset
|
137 ${PLUGIN} ${PLUGIN_NOINST}: ${EXT_DEPS} ${OBJS} |
1763 | 138 ${LINK_STATUS} |
139 if ${LD} -o $@ ${OBJS} ${PLUGIN_LDFLAGS} ${LDFLAGS} ${LIBS}; then \ | |
140 ${LINK_OK}; \ | |
141 else \ | |
142 ${LINK_FAILED}; \ | |
143 fi | |
144 | |
145 ${STATIC_LIB} ${STATIC_LIB_NOINST}: ${EXT_DEPS} ${OBJS} | |
146 ${LINK_STATUS} | |
147 if ${AR} cr $@ ${OBJS}; then \ | |
148 ${LINK_OK}; \ | |
149 else \ | |
150 ${LINK_FAILED}; \ | |
151 fi | |
152 | |
153 .c.o: | |
154 ${COMPILE_STATUS} | |
155 if ${CC} ${CFLAGS} ${CPPFLAGS} -c -o $@ $<; then \ | |
156 ${COMPILE_OK}; \ | |
157 else \ | |
158 ${COMPILE_FAILED}; \ | |
159 fi | |
160 | |
161 .cc.o .cxx.o: | |
162 ${COMPILE_STATUS} | |
163 if ${CXX} ${CXXFLAGS} ${CPPFLAGS} -c -o $@ $<; then \ | |
164 ${COMPILE_OK}; \ | |
165 else \ | |
166 ${COMPILE_FAILED}; \ | |
167 fi | |
168 | |
169 .d.o: | |
170 ${COMPILE_STATUS} | |
1865 | 171 if test x"$(basename ${DC})" = x"dmd"; then \ |
1763 | 172 if ${DC} ${DFLAGS} -c -of$@ $<; then \ |
173 ${COMPILE_OK}; \ | |
174 else \ | |
175 ${COMPILE_FAILED}; \ | |
176 fi \ | |
177 else \ | |
178 if ${DC} ${DFLAGS} -c -o $@ $<; then \ | |
179 ${COMPILE_OK}; \ | |
180 else \ | |
181 ${COMPILE_FAILED}; \ | |
182 fi \ | |
183 fi | |
184 | |
185 .erl.beam: | |
186 ${COMPILE_STATUS} | |
187 if ${ERLC} ${ERLCFLAGS} -o $@ $<; then \ | |
188 ${COMPILE_OK}; \ | |
189 else \ | |
190 ${COMPILE_FAILED}; \ | |
191 fi | |
192 | |
193 .m.o: | |
194 ${COMPILE_STATUS} | |
195 if ${OBJC} ${OBJCFLAGS} ${CPPFLAGS} -c -o $@ $<; then \ | |
196 ${COMPILE_OK}; \ | |
197 else \ | |
198 ${COMPILE_FAILED}; \ | |
199 fi | |
200 | |
201 install: ${LIB} ${STATIC_LIB} ${PLUGIN} ${PROG} install-extra | |
202 for i in ${SUBDIRS}; do \ | |
203 ${DIR_ENTER}; \ | |
204 ${MAKE} ${MFLAGS} install || exit 1; \ | |
205 ${DIR_LEAVE}; \ | |
206 done | |
207 | |
208 for i in ${LIB}; do \ | |
209 ${INSTALL_STATUS}; \ | |
210 if ${MKDIR_P} ${DESTDIR}${libdir} && ${INSTALL_LIB}; then \ | |
211 ${INSTALL_OK}; \ | |
212 else \ | |
213 ${INSTALL_FAILED}; \ | |
214 fi \ | |
215 done | |
216 | |
217 for i in ${STATIC_LIB}; do \ | |
218 ${INSTALL_STATUS}; \ | |
1909 | 219 if ${MKDIR_P} ${DESTDIR}${libdir} && ${INSTALL} -m 644 $$i ${DESTDIR}${libdir}/$$i; then \ |
1763 | 220 ${INSTALL_OK}; \ |
221 else \ | |
222 ${INSTALL_FAILED}; \ | |
223 fi \ | |
224 done | |
225 | |
226 for i in ${PLUGIN}; do \ | |
227 ${INSTALL_STATUS}; \ | |
2006
a56a26a5f233
Revised the plugindir logic.
Eugene Paskevich <eugene@raptor.kiev.ua>
parents:
2003
diff
changeset
|
228 if ${MKDIR_P} ${DESTDIR}${plugindir} && ${INSTALL} -m 755 $$i ${DESTDIR}${plugindir}/$$i; then \ |
1763 | 229 ${INSTALL_OK}; \ |
230 else \ | |
231 ${INSTALL_FAILED}; \ | |
232 fi \ | |
233 done | |
234 | |
235 for i in ${DATA}; do \ | |
236 ${INSTALL_STATUS}; \ | |
237 if ${MKDIR_P} $$(dirname ${DESTDIR}${datadir}/${PACKAGE}/$$i) && ${INSTALL} -m 644 $$i ${DESTDIR}${datadir}/${PACKAGE}/$$i; then \ | |
238 ${INSTALL_OK}; \ | |
239 else \ | |
240 ${INSTALL_FAILED}; \ | |
241 fi \ | |
242 done | |
243 | |
244 for i in ${PROG}; do \ | |
245 ${INSTALL_STATUS}; \ | |
1877 | 246 if ${MKDIR_P} ${DESTDIR}${bindir} && ${INSTALL} -m 755 $$i ${DESTDIR}${bindir}/$$i; then \ |
1763 | 247 ${INSTALL_OK}; \ |
248 else \ | |
249 ${INSTALL_FAILED}; \ | |
250 fi \ | |
251 done | |
252 | |
253 for i in ${INCLUDES}; do \ | |
254 ${INSTALL_STATUS}; \ | |
255 if ${MKDIR_P} ${DESTDIR}${includedir}/${includesubdir} && ${INSTALL} -m 644 $$i ${DESTDIR}${includedir}/${includesubdir}/$$i; then \ | |
256 ${INSTALL_OK}; \ | |
257 else \ | |
258 ${INSTALL_FAILED}; \ | |
259 fi \ | |
260 done | |
261 | |
262 for i in ${MAN}; do \ | |
263 ${INSTALL_STATUS}; \ | |
264 if ${MKDIR_P} ${DESTDIR}${mandir}/${mansubdir} && ${INSTALL} -m 644 $$i ${DESTDIR}${mandir}/${mansubdir}/$$i; then \ | |
265 ${INSTALL_OK}; \ | |
266 else \ | |
267 ${INSTALL_FAILED}; \ | |
268 fi \ | |
269 done | |
270 | |
271 install-extra: | |
272 | |
273 uninstall: uninstall-extra | |
274 for i in ${SUBDIRS}; do \ | |
275 ${DIR_ENTER}; \ | |
276 ${MAKE} ${MFLAGS} uninstall || exit 1; \ | |
277 ${DIR_LEAVE}; \ | |
278 done | |
279 | |
280 for i in ${LIB}; do \ | |
1865 | 281 if test -f ${DESTDIR}${libdir}/$$i; then \ |
1763 | 282 if ${UNINSTALL_LIB}; then \ |
283 ${DELETE_OK}; \ | |
284 else \ | |
285 ${DELETE_FAILED}; \ | |
286 fi \ | |
287 fi; \ | |
288 done | |
289 | |
290 for i in ${STATIC_LIB}; do \ | |
1865 | 291 if test -f ${DESTDIR}${libdir}/$$i; then \ |
1763 | 292 if rm -f ${DESTDIR}${libdir}/$$i; then \ |
293 ${DELETE_OK}; \ | |
294 else \ | |
295 ${DELETE_FAILED}; \ | |
296 fi \ | |
297 fi \ | |
298 done | |
299 | |
300 for i in ${PLUGIN}; do \ | |
2006
a56a26a5f233
Revised the plugindir logic.
Eugene Paskevich <eugene@raptor.kiev.ua>
parents:
2003
diff
changeset
|
301 if test -f ${DESTDIR}${plugindir}/$$i; then \ |
a56a26a5f233
Revised the plugindir logic.
Eugene Paskevich <eugene@raptor.kiev.ua>
parents:
2003
diff
changeset
|
302 if rm -f ${DESTDIR}${plugindir}/$$i; then \ |
1763 | 303 ${DELETE_OK}; \ |
304 else \ | |
305 ${DELETE_FAILED}; \ | |
306 fi \ | |
307 fi \ | |
308 done | |
2034
a21cc1e45080
Update buildsys. Please test.
Jonathan Schleifer <js@h3c.de>
parents:
2015
diff
changeset
|
309 -rmdir ${DESTDIR}${plugindir} >/dev/null 2>&1 |
1763 | 310 |
311 for i in ${DATA}; do \ | |
1865 | 312 if test -f ${DESTDIR}${datadir}/${PACKAGE}/$$i; then \ |
1763 | 313 if rm -f ${DESTDIR}${datadir}/${PACKAGE}/$$i; then \ |
314 ${DELETE_OK}; \ | |
315 else \ | |
316 ${DELETE_FAILED}; \ | |
317 fi \ | |
318 fi \ | |
319 done | |
320 | |
321 for i in ${PROG}; do \ | |
1865 | 322 if test -f ${DESTDIR}${bindir}/$$i; then \ |
1763 | 323 if rm -f ${DESTDIR}${bindir}/$$i; then \ |
324 ${DELETE_OK}; \ | |
325 else \ | |
326 ${DELETE_FAILED}; \ | |
327 fi \ | |
328 fi \ | |
329 done | |
330 | |
331 for i in ${INCLUDES}; do \ | |
1865 | 332 if test -f ${DESTDIR}${includedir}/${includesubdir}/$$i; then \ |
1763 | 333 if rm -f ${DESTDIR}${includedir}/${includesubdir}/$$i; then \ |
334 ${DELETE_OK}; \ | |
335 else \ | |
336 ${DELETE_FAILED}; \ | |
337 fi \ | |
338 fi \ | |
339 done | |
340 -rmdir ${DESTDIR}${includedir}/${includesubdir} >/dev/null 2>&1 | |
341 | |
342 for i in ${MAN}; do \ | |
1865 | 343 if test -f ${DESTDIR}${mandir}/${mansubdir}/$$i; then \ |
1763 | 344 if rm -f ${DESTDIR}${mandir}/${mansubdir}/$$i; then \ |
345 ${DELETE_OK}; \ | |
346 else \ | |
347 ${DELETE_FAILED}; \ | |
348 fi \ | |
349 fi \ | |
350 done | |
351 | |
352 uninstall-extra: | |
353 | |
354 clean: | |
355 for i in ${SUBDIRS}; do \ | |
356 ${DIR_ENTER}; \ | |
357 ${MAKE} ${MFLAGS} clean || exit 1; \ | |
358 ${DIR_LEAVE}; \ | |
359 done | |
360 | |
2374
179821cb7dca
Fix a possible bug in dependency generation.
Jonathan Schleifer <js-audacious@webkeks.org>
parents:
2373
diff
changeset
|
361 for i in ${OBJS} ${CLEAN} ${CLEAN_LIB} .deps ${DEPS}; do \ |
1865 | 362 if test -f $$i -o -d $$i; then \ |
1763 | 363 if rm -fr $$i; then \ |
364 ${DELETE_OK}; \ | |
365 else \ | |
366 ${DELETE_FAILED}; \ | |
367 fi \ | |
368 fi \ | |
369 done | |
370 | |
371 distclean: clean | |
372 for i in ${SUBDIRS}; do \ | |
373 ${DIR_ENTER}; \ | |
374 ${MAKE} ${MFLAGS} distclean || exit 1; \ | |
375 ${DIR_LEAVE}; \ | |
376 done | |
377 | |
1973
f86cb7fc1d4f
Add -pipe -Wall if gcc and fix a few warnings.
Jonathan Schleifer <js@h3c.de>
parents:
1918
diff
changeset
|
378 for i in ${PROG} ${PROG_NOINST} ${LIB} ${LIB_NOINST} ${STATIC_LIB} ${STATIC_LIB_NOINST} ${PLUGIN} ${PLUGIN_NOINST} ${DISTCLEAN} *~; 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 | |
2034
a21cc1e45080
Update buildsys. Please test.
Jonathan Schleifer <js@h3c.de>
parents:
2015
diff
changeset
|
388 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
|
389 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
|
390 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
|
391 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
|
392 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
|
393 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
|
394 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
|
395 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
|
396 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
|
397 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
|
398 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
|
399 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
|
400 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
|
401 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
|
402 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
|
403 DELETE_FAILED = printf "\033[K\033[0;31mFailed to delete \033[1;31m$$i\033[0;31m!\033[0m\n"; exit 1 |
1763 | 404 |
405 -include .deps |