Makefile 566 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.DEFAULT_GOAL := help

# SERVER_DEST is defined in a `.env` file and follow this format: user@server.url:/path/to/website
include .env

.PHONY: build
build: ## Build the website with Boop! generator
	boop.py

.PHONY: clean
clean: ## Clean output files
	rm -rf ./output

.PHONY: publish
publish: build  ## Publish the website online (rsync)
	rsync -P -rvzc --cvs-exclude --delete ./output/ $(SERVER_DEST)

.PHONY: help
help:
	@grep -h -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'