Makefile @ 04114f5e102d

Switch the site to use d
author Steve Losh <steve@stevelosh.com>
date Sat, 08 Oct 2016 13:06:44 +0000
parents (none)
children 61fde9091c13
.PHONY: package

files = $(shell hg files)
docfiles = $(shell hg files site)

package: ~/Desktop/splice.zip

~/Desktop/splice.zip: $(files)
	hg archive ~/Desktop/splice.zip -I 'doc' -I 'plugin' -I 'autoload' -I 'syntax' -I 'LICENSE.markdown' -I 'README.markdown'


docs: site/build/index.html

site/build/index.html: $(docfiles)
	cd site && ~/.virtualenvs/d/bin/d

pubdocs: site/build/index.html
	hg -R ~/src/sjl.bitbucket.org pull -u
	rsync --delete -az . ~/src/sjl.bitbucket.org/splice.vim
	hg -R ~/src/sjl.bitbucket.org commit -Am 'splice.vim: Update site.'
	hg -R ~/src/sjl.bitbucket.org push