website/Makefile

24 lines
420 B
Makefile
Raw Normal View History

2021-01-04 05:47:49 +00:00
SHELL := /bin/bash
ALL: build
# `make serve` to serve the dev site on localhost.
.PHONY: serve
serve:
hugo server -D
# `make build` to build the static documentation site.
.PHONY: build
build:
hugo
# `make deploy` uploads the site to production.
.PHONY: deploy
deploy:
rsync -av public/ --delete-after sketchymaze.com:www/sketchymaze.com/
# `make clean` cleans everything up.
.PHONY: clean
clean:
rm -rf public