Commit 2d37032af974b797baf515674c8d83175e213203
1 parent
f76e26b6
Add science-verification target to the Makefile.
This allows to execute the science verification using $ make science-verification
Showing
1 changed file
with
12 additions
and
0 deletions
Makefile.am
| ... | ... | @@ -106,6 +106,18 @@ valgrind: |
| 106 | 106 | echo "valgrind not found in PATH."; \ |
| 107 | 107 | fi |
| 108 | 108 | |
| 109 | +# Add science verification rule | |
| 110 | +science-verification: | |
| 111 | + @if type test/science_verification.py >/dev/null 2>&1; then \ | |
| 112 | + PYTHONPATH=$(top_builddir):$(top_builddir)/pyext:$(top_builddir)/pyext/build/ctools/ctools:$(pythondir):$(pyexecdir):$(PYTHONPATH); \ | |
| 113 | + @RUNSHARED@=$(top_builddir)/src/.libs:$(LIBDIR_GAMMALIB):$(@RUNSHARED@); \ | |
| 114 | + cd test; \ | |
| 115 | + ./science_verification.py; \ | |
| 116 | + cd ..; \ | |
| 117 | + else \ | |
| 118 | + echo "science_verification.py not found in test."; \ | |
| 119 | + fi | |
| 120 | + | |
| 109 | 121 | # Add Sphinx rule |
| 110 | 122 | sphinx: |
| 111 | 123 | @if type sphinx-build >/dev/null 2>&1; then \ | ... | ... |