This repository has been archived on 2023-02-03. You can view files and clone it, but cannot push or open issues or pull requests.
autonomic.zone/Makefile
Luke Murphy 5eba2a45b7
Make release and documentation more sane.
OK, I think I have this nailed now.
2017-10-04 18:43:21 +02:00

19 lines
651 B
Makefile

DEV_DIST_DIR:=dist
PROD_DIST_DIR:=proddist
PROD_REMOTE:=git@gitlab.com:autonomic-cooperative/autonomic-cooperative.gitlab.io.git
PROD_BRANCH:=production
PROD_BASE_URL:=https://autonomic.zone
devserver:
@echo "Serving development site from $(DEV_DIST_DIR)"
@jekyll serve --watch --incremental --destination $(DEV_DIST_DIR)
.PHONY: devserver
release:
@echo "Building production site into $(PROD_DIST_DIR)"
@jekyll build --destination $(PROD_DIST_DIR) --baseurl $(PROD_BASE_URL)
@echo "Pushing $(PROD_DIST_DIR) contents to the upstream production branch"
@git subtree push --prefix $(PROD_DIST_DIR) $(PROD_REMOTE) $(PROD_BRANCH)
.PHONY: release