From 1bf2e1be8078758c07303a18047fd5e05f3e5b45 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Sat, 4 Feb 2023 00:50:03 +0100 Subject: Add targets to libs.mk --- libs.mk | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libs.mk b/libs.mk index aab7554..fc59935 100644 --- a/libs.mk +++ b/libs.mk @@ -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 -- cgit v1.2.3