diff options
| author | Owen Jacobson <owen.jacobson@grimoire.ca> | 2012-12-10 21:43:48 -0500 |
|---|---|---|
| committer | Owen Jacobson <owen.jacobson@grimoire.ca> | 2012-12-10 21:43:48 -0500 |
| commit | 11758aaf4b05fed1e784be802fe8f3396547ce57 (patch) | |
| tree | 0f4eedcae0b4818b392c0245d582532faff17783 | |
| parent | a669b5d12c096925337e1cc7ed8600e5b8a4feda (diff) | |
Automate building and publishing.
Make sucks, but it beats a bunch of shell scripts.
| -rw-r--r-- | Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e343c64 --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +WEB_HOST ?= alchemy.grimoire.ca +WEB_ROOT ?= /var/www/grimoire.ca + +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 --delete-after .html/ $(WEB_HOST):$(WEB_ROOT) + +.PHONY: open +open: html + $(BROWSER) .html/index.html |
