aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-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}