From c1a18fdf2e0ce8dcdc8c2868ec4ce81b6c1b833e Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Thu, 28 Dec 2017 02:15:07 +0330 Subject: wip --- makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'makefile') 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 $@ -- cgit v1.2.3