From 6ecd88ab96fa9874c7b82d0b254b825c3a6de6a7 Mon Sep 17 00:00:00 2001 From: metere1llnl <51676123+metere1llnl@users.noreply.github.com> Date: Sat, 13 Jul 2019 19:02:15 -0700 Subject: [PATCH] Update Makefile Allows for local installation. This is useful when compiling gdrcopy on a cluster or wherever the user does not have rights to do global installations. --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9861281f..642d67f4 100644 --- a/Makefile +++ b/Makefile @@ -45,7 +45,12 @@ exes: $(EXES) install: lib_install #drv_install -lib_install: +makedirs: + @ echo "creating $(DESTLIB) ..." + mkdir -p $(DESTLIB) + mkdir -p $(PREFIX)/include + +lib_install: makedirs @ echo "installing in $(PREFIX)..." && \ install -D -v -m u=rw,g=rw,o=r $(LIB_DYNAMIC) -t $(DESTLIB) && \ install -D -v -m u=rw,g=rw,o=r gdrapi.h -t $(PREFIX)/include/; \