aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2019-12-29 12:40:22 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2019-12-29 12:40:22 +0100
commit265c1b6e05e9f4771847c8af6ec149c32361cb82 (patch)
tree99f5006fa5c82509e7c1e065ad820459ebe2b270
parentMakefile rework in progress (diff)
downloadlowbat-gnu-265c1b6e05e9f4771847c8af6ec149c32361cb82.tar.gz
lowbat-gnu-265c1b6e05e9f4771847c8af6ec149c32361cb82.tar.bz2
lowbat-gnu-265c1b6e05e9f4771847c8af6ec149c32361cb82.tar.xz
lowbat-gnu-265c1b6e05e9f4771847c8af6ec149c32361cb82.tar.zst
lowbat-gnu-265c1b6e05e9f4771847c8af6ec149c32361cb82.zip
ls still not working
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 420183b..2d6149c 100644
--- a/Makefile
+++ b/Makefile
@@ -50,7 +50,9 @@ MANPREFIX = $(PREFIX)/share/man
${OBJS_DIR}%.o: ${SRCS_DIR}%.cpp ${INCS_DIR}${INCS}
+ifeq ("$(wildcard ${OBJS_DIR})","")
${MKDIR} ${OBJS_DIR}
+endif
${CXX} ${CXXFLAGS} -I${INCS_DIR} -c -o $@ $<
${NAME}: ${OBJS}