tests: Move code to add new DES keys to common
[openafs.git] / tests / Makefile.in
index 462afcf..550312c 100644 (file)
@@ -9,25 +9,21 @@ include @TOP_OBJDIR@/src/config/Makefile.pthread
 MODULE_CFLAGS = -DSOURCE='"$(abs_top_srcdir)/tests"' \
        -DBUILD='"$(abs_top_builddir)/tests"'
 
+SUBDIRS = tap common auth util cmd
+
 all: runtests
-       cd tap && $(MAKE) $@
-       cd auth && $(MAKE) $@
-       cd rxgk && $(MAKE) $@
-       cd util && $(MAKE) $@
+       @for A in $(SUBDIRS); do cd $$A && $(MAKE) $@ && cd .. || exit 1; done
 
 runtests: runtests.o
        $(AFS_LDRULE) runtests.o
 
 check test tests: runtests
-       cd tap && $(MAKE) $@
-       cd auth && $(MAKE) $@
-       cd util && $(MAKE) $@
-       ./runtests $(abs_top_srcdir)/tests/TESTS
+       @for A in $(SUBDIRS); do cd $$A && $(MAKE) $@ && cd .. || exit 1; done
+       LD_LIBRARY_PATH=@TOP_OBJDIR@/lib \
+           ./runtests $(abs_top_srcdir)/tests/TESTS
 
 install:
 
 clean distclean:
-       cd tap && $(MAKE) $@
-       cd auth && $(MAKE) $@
-       cd util && $(MAKE) $@
+       @for A in $(SUBDIRS); do cd $$A && $(MAKE) $@ && cd .. || exit 1; done
        $(RM) -f *.o core runtests