0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-10-18 18:08:45 +00:00
bird/tools/Makefile-top.in
2015-03-17 11:28:41 +01:00

39 lines
1.2 KiB
Plaintext

# Makefile for in place build of BIRD
# (c) 1999--2000 Martin Mares <mj@ucw.cz>
objdir=@objdir@
all depend tags install install-docs build-tests:
$(MAKE) -C $(objdir) $@
docs userdocs progdocs:
$(MAKE) -C doc $@
check: build-tests
@all_tests=( `find . -name '*_test' -executable` ) ; \
test_num=1 ; \
num_succ_tests=0 ; \
num_fail_tests=0 ; \
echo -e "\n== Start all $${#all_tests[@]} unit tests ==\n" ; \
for test in "$${all_tests[@]}" ; do \
echo -e "[$$((test_num++))/$${#all_tests[@]}] $$test" ; \
./$$test \
&& num_succ_tests=$$((num_succ_tests+1)) \
|| num_fail_tests=$$((num_fail_tests+1)) ; \
done ; \
echo "" ; \
echo "------------------------------" ; \
echo " Success: $$num_succ_tests" ; \
echo " Failure: $$num_fail_tests" ; \
echo "------------------------------"
clean:
$(MAKE) -C $(objdir) clean
find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core -or -name depend -or -name ".#*" | xargs rm -f
distclean: clean
$(MAKE) -C doc distclean
rm -rf $(objdir) autom4te.cache
rm -f config.* configure sysdep/autoconf.h sysdep/paths.h Makefile