diff options
author | 2023-02-04 00:50:03 +0100 | |
---|---|---|
committer | 2023-02-04 00:50:03 +0100 | |
commit | 1bf2e1be8078758c07303a18047fd5e05f3e5b45 (patch) | |
tree | 72588718c251eaf1613899a16b5b5a8873aa01eb | |
parent | 74673937256ea22762c04cad1ce1ebd9782931d9 (diff) | |
download | log-1bf2e1be8078758c07303a18047fd5e05f3e5b45.tar.gz log-1bf2e1be8078758c07303a18047fd5e05f3e5b45.zip |
Add targets to libs.mk
-rw-r--r-- | libs.mk | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -9,3 +9,15 @@ LIBSTR_LIB = -L${LIB_DIR}/${LIBSTR} -l:libstr.a LIBINC = ${LIBSTR_INC} LIBS = ${LIBSTR_LIB} + +clean-libs: + rm -rf ${LIBDIR} + +libs: ${LIBDIR} ${LIBDIR}/${LIBSTR} + +${LIBDIR}: + @mkdir -p $@ + +${LIBDIR}/${LIBSTR}: + fetch -o - https://git.alessandroiezzi.it/libs/c/cstr.git/snapshot/${LIBSTR}.tar.gz | tar xzf - -C ${LIBDIR} + cd $@ && make |