aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7edbff9..07ac309 100644
--- a/Makefile
+++ b/Makefile
@@ -32,3 +32,13 @@ clean:
tests: dist
cd test && make clean tests
+
+install: dist
+ cp src/log.h ${PREFIX}/include/log.h
+ mkdir -p ${PREFIX}/lib/log
+ cp ${LIBNAME:=.so} ${PREFIX}/lib/log/${LIBNAME:=.so}
+ cp ${LIBNAME:=.a} ${PREFIX}/lib/log/${LIBNAME:=.a}
+
+uninstall:
+ rm -f ${PREFIX}/include/log.h
+ rm -rf ${PREFIX}/lib/log