Build util tests properly with make check
authorRuss Allbery <rra@stanford.edu>
Mon, 14 Jun 2010 22:28:20 +0000 (15:28 -0700)
committerDerrick Brashear <shadow@dementia.org>
Tue, 15 Jun 2010 01:06:42 +0000 (18:06 -0700)
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>

tests/Makefile.in
tests/util/Makefile.in

index 7118378..d2d0bbf 100644 (file)
@@ -20,6 +20,7 @@ runtests: runtests.o
 
 check test tests: runtests
        cd tap && $(MAKE) $@
+       cd util && $(MAKE) $@
        ./runtests $(abs_top_srcdir)/tests/TESTS
 
 install:
index 763f1cd..9fc34fa 100644 (file)
@@ -8,7 +8,7 @@ CFLAGS += -I$(srcdir)/..
 
 tests = ktime-t
 
-all: $(tests)
+all check test tests: $(tests)
 
 ktime-t: ktime-t.o
        $(CC) $(LDFLAGS) -o ktime-t ktime-t.o ../tap/libtap.a \