summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2020-01-19 00:05:23 +1030
committerDaniel Jones <admin@danieljon.es>2020-01-19 00:05:23 +1030
commit4457695aeb0c03b7c3f18fa1527b8e83b2823ea0 (patch)
tree67077b5ca8b91b15686d520562cd9eb013b73f42 /makefile
parent71ec9cb679afb648fac76e7763b96def1f290c22 (diff)
downloadwebsitegenerator-4457695aeb0c03b7c3f18fa1527b8e83b2823ea0.tar.gz
websitegenerator-4457695aeb0c03b7c3f18fa1527b8e83b2823ea0.zip
makefile: delete output dir on clean and make dir on build
Diffstat (limited to 'makefile')
-rw-r--r--makefile5
1 files changed, 4 insertions, 1 deletions
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}