diff options
author | 2023-02-23 17:13:26 +0100 | |
---|---|---|
committer | 2023-02-23 17:13:26 +0100 | |
commit | f63b976dac9debd10295d9fb54819f508ac38d66 (patch) | |
tree | c0ce1eaf556cbc9ee9e7d98ee6cce84c12b1700c /Makefile | |
parent | e6a9f8fc97c80bf50e85012af944f9eb713ee645 (diff) | |
download | string2-f63b976dac9debd10295d9fb54819f508ac38d66.tar.gz string2-f63b976dac9debd10295d9fb54819f508ac38d66.zip |
Add install target
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 |