From 093692c785b678e4882ab9f1132b2ea5657e62c0 Mon Sep 17 00:00:00 2001 From: q-posev Date: Wed, 2 Jun 2021 18:45:05 +0200 Subject: [PATCH] fix Fortran test + add clean-local target --- Makefile.am | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index 1949d62..12bd70f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -31,7 +31,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ACLOCAL_AMFLAGS = -I m4 -CLEANFILES = +CLEANFILES = trexio.mod VERSION_MAJOR = @VERSION_MAJOR@ VERSION_MINOR = @VERSION_MINOR@ @@ -81,13 +81,16 @@ tests_test_c_LDFLAGS = -no-install test_trexio_f = $(srcdir)/tests/trexio_f.f90 -tests_test_f_SOURCES = tests/test_f.f90 $(test_trexio_f) +tests_test_f_SOURCES = $(test_trexio_f) tests/test_f.f90 tests_test_f_LDADD = src/libtrexio.la tests_test_f_LDFLAGS = -no-install -$(test_trexio_f): $(trexio_f) +$(test_trexio_f): cp $(trexio_f) $(test_trexio_f) +clean-local: + -rm -rf -- test_write.dir/ test_write_f.dir/ test_write.h5 + if TREXIO_DEVEL CLEANFILES += $(SOURCES) $(trexio_f) $(trexio_h)