summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdmin <admin@marx.cafe>2022-12-03 01:29:08 -0500
committerAdmin <admin@marx.cafe>2022-12-03 01:29:08 -0500
commit6d12ed77aebf8ee6f85d7b50fda2f377b25c993a (patch)
tree35d962023cfcec9ca062554d0690cc561f2e57bb
parent084e527ede061a50517f77caa552114d0a36016b (diff)
Clean compiled site before re-compiling
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ae12892..d3bf70f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,9 @@
-compile:
+compile: clean
hugo
+clean:
+ [ ! -d public ] || rm -r public/
+
dev:
hugo server -D