#!/usr/bin/make -f # Preview in local how it will render. preview prev: -all-dev-watch # Upload to prod. show: -all-prod -install-prod # Prepare. prepare: -prepare .PHONY: preview prev show prepare #*****************************************************************************# # Internal rules # #*****************************************************************************# BUNDLE := bundle JEK := $(BUNDLE) exec jekyll ROOT := hercule:thcolor # Prepare. -prepare: $(BUNDLE) check || $(BUNDLE) install --path vendor/bundle # Make it and watch or not. -all-prod: -prepare $(JEK) build $(OPTS) -all-dev-watch: -prepare $(JEK) serve --drafts --watch $(OPTS) # Install the prod site onto the prod server. -install-prod: find _site -type f -exec chmod 644 {} \; rsync -Prlt --delete --exclude=docs/ _site/ "$(ROOT)" .PHONY: -prepare .PHONY: -all-prod -all-dev-watch .PHONY: -install-prod # End of file.