From df91b9e7e5bba036f3b35f438587392d66c9caea Mon Sep 17 00:00:00 2001 From: q-posev Date: Wed, 18 Aug 2021 15:02:54 +0300 Subject: [PATCH] better cleaning of the python part --- Makefile.am | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/Makefile.am b/Makefile.am index f1ede0d..2bda741 100644 --- a/Makefile.am +++ b/Makefile.am @@ -184,16 +184,17 @@ cppcheck.out: $(trexio_h) -I../include *.c *.h 2>../$@ -setup_py = $(srcdir)/python/setup.py -setup_cfg = $(srcdir)/python/setup.cfg -pytrexio_py = $(srcdir)/python/trexio/pytrexio.py -TEST_PY = $(srcdir)/python/test/test_full.py -pytrexio_c = $(srcdir)/src/pytrexio_wrap.c -pytrexio_i = $(srcdir)/src/pytrexio.i -numpy_i = $(srcdir)/src/numpy.i +setup_py = $(srcdir)/python/setup.py +setup_cfg = $(srcdir)/python/setup.cfg +pytrexio_py = $(srcdir)/python/trexio/pytrexio.py +trexio_api_py = $(srcdir)/python/trexio/trexio_api.py +TEST_PY = $(srcdir)/python/test/test_api.py +pytrexio_c = $(srcdir)/src/pytrexio_wrap.c +pytrexio_i = $(srcdir)/src/pytrexio.i +numpy_i = $(srcdir)/src/numpy.i -python-test: $(pytrexio_py) $(TEST_PY) +python-test: $(TEST_PY) python3 $(TEST_PY) $(RM) -r -- __pycache__ @@ -216,12 +217,11 @@ $(numpy_i): check-numpy: cd tools && ./check_numpy_i.sh -CLEANFILES += src/pytrexio_wrap.c \ - src/pytrexio.py \ - python/trexio/pytrexio.py \ - python/trexio/trexio.py \ - python/src/*.c \ - python/src/*.h +CLEANFILES += $(pytrexio_c) \ + $(pytrexio_py) \ + $(trexio_api_py) \ + python/src/*.c \ + python/src/*.h .PHONY: cppcheck python-test python-install check-numpy