Commit c4297ebd authored by berumuron's avatar berumuron
Browse files

Add a basic Makefile to publish website

parent 38be40d7
.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}'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment