From 4457695aeb0c03b7c3f18fa1527b8e83b2823ea0 Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Sun, 19 Jan 2020 00:05:23 +1030 Subject: makefile: delete output dir on clean and make dir on build --- makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'makefile') diff --git a/makefile b/makefile index c2005e9..1530317 100644 --- a/makefile +++ b/makefile @@ -5,7 +5,7 @@ CFLAGS = -std=c99 -g -Wall -Werror -Wno-unused-variable .PHONY: default all clean -default: $(TARGET) +default: mkdirs $(TARGET) all: default OBJECTS = $(patsubst %.c, %.o, $(wildcard *.c)) @@ -23,4 +23,7 @@ clean: -rm -f *.o -rm -f *.tmp -rm -f $(TARGET) + -rm -rf output/ +mkdirs: + mkdir -p {output/posts/direct,output/opinions} -- cgit v1.2.3