summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-09-07 23:26:41 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2024-09-07 23:26:41 -0400
commitca851a0933a3c3da7440eec9a90a33b18f4c9dc5 (patch)
tree024bd2f1881c8314c23effb031a1f7fd6e05db3e /Makefile
Batman
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..76417d0
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+THEME_DIR := themes/hugo-book
+HUGO := hugo
+
+# Check if the submodule needs to be updated
+setup:
+ @git submodule update --init --recursive
+
+run: setup
+ $(HUGO) server --noHTTPCache
+
+compile: setup
+ $(HUGO) --minify
+
+.PHONY: setup run compile