aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2555128..b2492ab 100644
--- a/Makefile
+++ b/Makefile
@@ -44,5 +44,16 @@ clean:
tests: all
cd test && make clean tests
+${INSTALL_LIB_DIR}:
+ mkdir -p $@
+
+${INSTALL_INC_DIR}:
+ mkdir -p $@
+
+install: all ${INSTALL_LIB_DIR} ${INSTALL_INC_DIR}
+ cp ${LIBNAME:=.a} ${INSTALL_LIB_DIR}/${LIBNAME:=.a}
+ cp ${LIBNAME:=.so} ${INSTALL_LIB_DIR}/${LIBNAME:=.so}
+ cp src/string2.h ${INSTALL_INC_DIR}/string2.h
+
# Generated by makemk script
include target.mk