openafs/tests/Makefile.in
Russ Allbery a62de61855 Build util tests properly with make check
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>
2010-06-14 18:06:42 -07:00

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