aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libs.mk12
1 files changed, 12 insertions, 0 deletions
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