aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJulien Dessaux2021-03-11 18:53:14 +0100
committerJulien Dessaux2021-03-11 18:53:14 +0100
commit60d3abc6ecdc21b4ab921d34a55b4af48690f55a (patch)
tree1ee530dd7367d743fb619f341100e41df22e1985 /Makefile
parentUpdated docsy theme (diff)
downloadwww-60d3abc6ecdc21b4ab921d34a55b4af48690f55a.tar.gz
www-60d3abc6ecdc21b4ab921d34a55b4af48690f55a.tar.bz2
www-60d3abc6ecdc21b4ab921d34a55b4af48690f55a.zip
Rewrote the whole website to get rid on a heavy theme
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..9fdcf0f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+.POSIX:
+DESTDIR=public
+
+.PHONY: build
+build: ## make build # builds an optimized version of the website in $(DESTDIR)
+ @echo "? Generating site"
+ hugo --gc --minify --cleanDestinationDir -d $(DESTDIR)
+
+
+.PHONY: clean
+clean: ## make clean # removed all $(DESTDIR) contents
+ @echo "? Cleaning old build"
+ cd $(DESTDIR) && rm -rf *
+
+.PHONY: serve
+serve: ## make serve # hugo web server development mode
+ hugo serve
+
+help:
+ @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
+
+.DEFAULT_GOAL := help