From 2d37032af974b797baf515674c8d83175e213203 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Thu, 15 Oct 2015 22:54:54 +0200 Subject: [PATCH] Add science-verification target to the Makefile. --- Makefile.am | 12 ++++++++++++ 1 file changed, 12 insertions(+), 0 deletions(-) diff --git a/Makefile.am b/Makefile.am index f2d231a..daa3f87 100644 --- a/Makefile.am +++ b/Makefile.am @@ -106,6 +106,18 @@ valgrind: echo "valgrind not found in PATH."; \ fi +# Add science verification rule +science-verification: + @if type test/science_verification.py >/dev/null 2>&1; then \ + PYTHONPATH=$(top_builddir):$(top_builddir)/pyext:$(top_builddir)/pyext/build/ctools/ctools:$(pythondir):$(pyexecdir):$(PYTHONPATH); \ + @RUNSHARED@=$(top_builddir)/src/.libs:$(LIBDIR_GAMMALIB):$(@RUNSHARED@); \ + cd test; \ + ./science_verification.py; \ + cd ..; \ + else \ + echo "science_verification.py not found in test."; \ + fi + # Add Sphinx rule sphinx: @if type sphinx-build >/dev/null 2>&1; then \ -- libgit2 0.21.4