mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
a62de61855
If one runs make check without previously running make at the top level first, it didn't build the util test programs properly. Recurse into subdirectories for make check as well, and add the check, test, and tests targets to tests/util/Makefile.in Change-Id: Idc2caf4cf83a48da350e724aba2ac1228795085d Reviewed-on: http://gerrit.openafs.org/2162 Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: Derrick Brashear <shadow@dementia.org>
32 lines
712 B
Makefile
32 lines
712 B
Makefile
# Build rules for the OpenAFS test suite.
|
|
|
|
srcdir=@srcdir@
|
|
abs_top_srcdir=@abs_top_srcdir@
|
|
abs_top_builddir=@abs_top_builddir@
|
|
include @TOP_OBJDIR@/src/config/Makefile.config
|
|
|
|
RUNTESTS_CPPFLAGS = -DSOURCE='"$(abs_top_srcdir)/tests"' \
|
|
-DBUILD='"$(abs_top_builddir)/tests"'
|
|
|
|
all: runtests
|
|
cd tap && $(MAKE) $@
|
|
cd util && $(MAKE) $@
|
|
|
|
runtests.o: $(srcdir)/runtests.c
|
|
$(CCOBJ) $(CFLAGS) $(RUNTESTS_CPPFLAGS) -c $(srcdir)/runtests.c
|
|
|
|
runtests: runtests.o
|
|
$(CC) $(LDFLAGS) -o runtests runtests.o
|
|
|
|
check test tests: runtests
|
|
cd tap && $(MAKE) $@
|
|
cd util && $(MAKE) $@
|
|
./runtests $(abs_top_srcdir)/tests/TESTS
|
|
|
|
install:
|
|
|
|
clean distclean:
|
|
cd tap && $(MAKE) $@
|
|
cd util && $(MAKE) $@
|
|
$(RM) -f *.o core runtests
|