Patch from vodz:
[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         rm -f *.o
15
16 distclean: clean
17
18 .PHONY: all clean distclean message_header
19
20 include $(wildcard *_tests.mk)
21
22 BBL := $(shell pushd .. >/dev/null &&           \
23                  ${MAKE} busybox.links >/dev/null && \
24                popd >/dev/null &&               \
25                cat ../busybox.links |           \
26                  sed -e 's,.*/\(.*\)$$,\1,')
27
28 ../busybox:
29         cd .. && ${MAKE} busybox
30
31 ${BBL}: ../busybox
32         rm -f $@
33         ln ../busybox $@
34
35 syslog_test: syslog_test.c