2023-07-27 09:41:06 +00:00
|
|
|
HUGO_PARAMS =
|
|
|
|
DEV_PARAMS = -D
|
2024-01-07 09:41:22 +00:00
|
|
|
SERVER_PARAMS = --bind 0.0.0.0
|
2023-01-21 19:30:30 +00:00
|
|
|
|
|
|
|
all:
|
|
|
|
|
|
|
|
build:
|
2023-07-27 09:41:06 +00:00
|
|
|
hugo ${HUGO_PARAMS} --minify
|
|
|
|
|
|
|
|
dev:
|
|
|
|
hugo ${HUGO_PARAMS} ${DEV_PARAMS}
|
|
|
|
|
|
|
|
server:
|
2024-01-07 09:41:22 +00:00
|
|
|
hugo server ${HUGO_PARAMS} ${SERVER_PARAMS}
|
2024-01-04 12:16:43 +00:00
|
|
|
|
|
|
|
dev-server:
|
2024-01-07 09:41:22 +00:00
|
|
|
hugo server ${HUGO_PARAMS} ${SERVER_PARAMS} ${DEV_PARAMS}
|
2023-01-21 19:30:30 +00:00
|
|
|
|
|
|
|
tarball: build
|
|
|
|
tar czf page.tar.gz -C public .
|
|
|
|
|
|
|
|
.PHONY: tarball build
|
2023-10-27 21:18:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
sync-to-stage:
|
|
|
|
rsync -ahPv --delete --delete-delay --info=progress2 public/ christian@hh.wolf-stuttgart.net:/srv/http/tsc/hugo/
|