From ea972a25b7e27d55dd790013192823ea9b8e732f Mon Sep 17 00:00:00 2001 From: Timo Schmidt Date: Sun, 19 Mar 2023 03:37:12 +0100 Subject: [PATCH] DIRS variable --- config.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config.mk b/config.mk index 6ff729b..5f55a3a 100644 --- a/config.mk +++ b/config.mk @@ -5,6 +5,7 @@ PREFIX = ~/.local INCDIR = include OBJDIR = obj BUILDDIR = build +DIRS = ${INCDIR} ${OBJDIR} ${BUILDDIR} # includes INCS = -I${INCDIR} @@ -14,3 +15,5 @@ CFLAGS = -Wall -Wextra -Werror ${INCS} # compiler and linker CC = cc + +$(shell mkdir -p $(DIRS))