aboutsummaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/makefile b/makefile
index b6f6f40..9d04274 100644
--- a/makefile
+++ b/makefile
@@ -7,9 +7,13 @@ CC_FLAGS+=$(CC_EXTRA)
.DEFAULT:all clean
-.PHONY:all clean $(TARGET) help
+.PHONY:all clean $(TARGET) help dirs
-all:$(TARGET)
+all: dirs $(TARGET)
+
+dirs:
+ if [[ ! -d obj ]]; then mkdir obj;fi
+ if [[ ! -d libs ]]; then mkdir libs;fi
.c.o:
$(CC) $(CC_FLAGS) -c $< -o $@