In post.in, add a check-pytests intermediate target for Makefile.in to
authorGreg Hudson <ghudson@mit.edu>
Fri, 5 Mar 2010 20:32:40 +0000 (20:32 +0000)
committerGreg Hudson <ghudson@mit.edu>
Fri, 5 Mar 2010 20:32:40 +0000 (20:32 +0000)
add dependencies to, for test scripts which run C test programs.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23770 dc483132-0cff-0310-8789-dd5450dbe970

src/config/post.in

index e61561a2b74efd9d9855139405e351f780e0252e..47ef248f8a8a6569eec8270a2f362c773b1e4861 100644 (file)
@@ -129,9 +129,14 @@ undepend-postrecurse: undepend-recurse
 ##############################
 
 # Python tests
-check-unix:: check-python-tests-@HAVE_PYTHON@
+check-unix:: check-pytests
 
-check-python-tests-yes:
+# Makefile.in should add dependencies to check-pytests for test
+# programs that need to be built before scripts are run.
+
+check-pytests:: check-pytests-@HAVE_PYTHON@
+
+check-pytests-yes:
        @pytests="$(PYTESTS)"; \
        for t in $$pytests; do \
                echo PYTHONPATH=$(top_srcdir)/util VALGRIND="$(VALGRIND)" \
@@ -140,7 +145,7 @@ check-python-tests-yes:
                        $(PYTHON) $(srcdir)/$$t $(PYTESTFLAGS) || exit 1; \
        done
 
-check-python-tests-no:
+check-pytests-no:
        @if test -n "$(PYTESTS)"; then \
                echo "+++ Skipping because Python not available: $(PYTESTS)"; \
        fi