chore: Better Makefile documentation (`make test')

main
earnest ma 2 months ago
parent 84414a06e1
commit 3a84e51f73
Signed by: earnest ma
GPG Key ID: A343F43342EB6E2A
  1. 16
      Makefile

@ -14,12 +14,12 @@ hugo: clean
hugo -b $(HUGO_BASEURL) $(HUGO_FLAGS)
.PHONY: clean
clean:
clean: ## Remove temporary and build files
rm -rf $(OUTPUT_DIR)
rm -rf static/recipes.yaml
.PHONY: serve
serve:
serve: ## Start a development server, by default on localhost:1313
hugo serve
.PHONY: build
@ -30,16 +30,20 @@ check-links: hugo
lychee content/
.PHONY: test
test: check-links
test: check-links ## Runs test, check links
.PHONY: deploy-main
deploy-main: build # test
deploy-main: build # test temporarily removed
rsync $(OUTPUT_DIR)/ $(WWW_RSYNC_DEST)/ -ravz --delete
.PHONY: deploy-staging
deploy-staging: DOMAIN = staging.earnestma.com
deploy-staging: build test
deploy-staging: build test ## Build the website and deploy it to staging
rsync $(OUTPUT_DIR)/ $(WWW_RSYNC_DEST)/ -ravz --delete
.PHONY: help
help: ## Show this help
@egrep -h '\s##\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
.PHONY: all
all: deploy-main
all: deploy-main ## Build the website and deploy it

Loading…
Cancel
Save