diff options
author | Daniel Jones <admin@danieljon.es> | 2020-01-19 00:05:23 +1030 |
---|---|---|
committer | Daniel Jones <admin@danieljon.es> | 2020-01-19 00:05:23 +1030 |
commit | 4457695aeb0c03b7c3f18fa1527b8e83b2823ea0 (patch) | |
tree | 67077b5ca8b91b15686d520562cd9eb013b73f42 | |
parent | 71ec9cb679afb648fac76e7763b96def1f290c22 (diff) | |
download | websitegenerator-4457695aeb0c03b7c3f18fa1527b8e83b2823ea0.tar.gz websitegenerator-4457695aeb0c03b7c3f18fa1527b8e83b2823ea0.zip |
makefile: delete output dir on clean and make dir on build
-rw-r--r-- | makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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} |