From a9c506dd154be7acbbba8316aec6d9dabe2e934a Mon Sep 17 00:00:00 2001 From: q-posev Date: Fri, 30 Apr 2021 20:10:06 +0200 Subject: [PATCH] fix distcheck rule --- Makefile.in | 2 +- src/Makefile.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index 3684b48..af368be 100644 --- a/Makefile.in +++ b/Makefile.in @@ -77,7 +77,7 @@ FORCE: distcheck: $(distdir).tar.gz gzip -cd $(distdir).tar.gz | tar xvf - cd $(distdir) && \ - ./configure prefix=$${PWD}/$(distdir) CC="$(CC)" CFLAGS="$(CFLAGS)" && \ + ./configure prefix=$${PWD} CC="$(CC)" CFLAGS="$(CFLAGS)" && \ $(MAKE) all && \ $(MAKE) check && \ $(MAKE) DESTDIR=$${PWD}/_inst install && \ diff --git a/src/Makefile.in b/src/Makefile.in index 82060e6..8c7cda0 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -101,7 +101,7 @@ trexio.c trexio_f.f90 trexio.h: $(ORG_FILES) # install should avoid build target due to possible conflict when prefix overriden install: $(INSTALL) -d $(DESTDIR)$(libdir) $(DESTDIR)$(includedir) - cp libtrexio.so $(DESTDIR)$(libdir) + cp $(libdir)/libtrexio.so $(DESTDIR)$(libdir) cp trexio*.h $(DESTDIR)$(includedir) cp trexio.mod $(DESTDIR)$(includedir)