Skip to content

Instantly share code, notes, and snippets.

@ojacobson
Created December 11, 2012 01:33
Show Gist options
  • Save ojacobson/4255008 to your computer and use it in GitHub Desktop.
Save ojacobson/4255008 to your computer and use it in GitHub Desktop.
WEB_HOST ?= alchemy.grimoire.ca
WEB_ROOT ?= /home/owen/bliki
BROWSER ?= open
.html: clean
markdoc build
.PHONY: html
html: .html
.PHONY: clean
clean:
$(RM) -r .html
$(RM) -r .tmp
.PHONY: publish
publish: html
rsync -zav .html/ $(WEB_HOST):$(WEB_ROOT)
.PHONY: open
open: html
$(BROWSER) .html/index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment