Enhance Makefile to allow to use the server directly

This commit is contained in:
Christian Wolf 2023-07-27 11:41:06 +02:00
parent 4974db0495
commit 67f5f175e7

View File

@ -1,9 +1,16 @@
HUGO_PARAMS = -D
HUGO_PARAMS =
DEV_PARAMS = -D
all:
build:
hugo ${HUGO_PARAMS}
hugo ${HUGO_PARAMS} --minify
dev:
hugo ${HUGO_PARAMS} ${DEV_PARAMS}
server:
hugo server ${HUGO_PARAMS} ${DEV_PARAMS}
tarball: build
tar czf page.tar.gz -C public .