From dbf3ea7126b13beadc8a906d02372061cf21560b Mon Sep 17 00:00:00 2001 From: Avril Date: Mon, 13 May 2019 00:35:59 +0100 Subject: [PATCH] moved library install to /usr/local/lib --- Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index f9533b9..74042c0 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ HOME:=$(shell getent passwd `logname` | cut -d: -f6) -LOCAL_PROJECTS:=$(HOME)/quicklisp/local-projects +LOCAL_INSTALL:=$(HOME)/quicklisp/local-projects +SYSTEM_INSTALL:=/usr/local/lib ffi: cd libsipc && make libsipc-ffi @@ -14,13 +15,13 @@ clean: rm -f sipcli install-ffi: - if [[ $(shell id -u) == 0 ]]; then cp -f libsipc.so /usr/lib/libsipc.so; fi + if [[ $(shell id -u) == 0 ]]; then cp -f libsipc.so $(SYSTEM_INSTALL)/libsipc.so; fi install: ffi install-ffi - if [ -d "$(LOCAL_PROJECTS)" ]; then sudo -u `logname` ln -nsi "`pwd`" "$(LOCAL_PROJECTS)/cl-sipc"; fi + if [ -d "$(LOCAL_INSTALL)" ]; then sudo -u `logname` ln -nsi "`pwd`" "$(LOCAL_INSTALL)/cl-sipc"; fi uninstall-ffi: - if [[ $(shell id -u) == 0 ]]; then rm -f /usr/lib/libsipc.so; fi + if [[ $(shell id -u) == 0 ]]; then rm -f $(SYSTEM_INSTALL)/libsipc.so; fi uninstall: uninstall-ffi - if [ -L "$(LOCAL_PROJECTS)/cl-sipc" ] && [ "`readlink -f $(LOCAL_PROJECTS)/cl-sipc`" == "`pwd`" ]; then sudo -u `logname` rm -i $(LOCAL_PROJECTS)/cl-sipc; fi + if [ -L "$(LOCAL_INSTALL)/cl-sipc" ] && [ "`readlink -f $(LOCAL_INSTALL)/cl-sipc`" == "`pwd`" ]; then sudo -u `logname` rm -i $(LOCAL_INSTALL)/cl-sipc; fi