Patch from Lars Kellogg-Stedman:
[oweals/busybox.git] / tests / Makefile
1 # busybox/tests/Makefile - Run through all defined tests.
2 # ------------------------
3 # Copyright (C) 2000  Karl M. Hegbloom <karlheg@debian.org>  GPL
4
5 all:: message_header
6
7 message_header:
8         @echo
9         @echo BusyBox Test Suite.
10         @echo
11         (cd ..; tests/busybox.REGRESS.sh)
12
13 clean::
14
15 distclean: clean
16
17 .PHONY: all clean distclean message_header
18
19 include $(wildcard *_tests.mk)
20
21 BBL := $(shell pushd .. >/dev/null &&           \
22                  ${MAKE} busybox.links >/dev/null && \
23                popd >/dev/null &&               \
24                cat ../busybox.links |           \
25                  sed -e 's,.*/\(.*\)$$,\1,')
26
27 ../busybox:
28         cd .. && ${MAKE} busybox
29
30 ${BBL}: ../busybox
31         rm -f $@
32         ln ../busybox $@
33
34 syslog_test: syslog_test.c