Makefile @ 062b18eebd15

Fix broken url
author Jof Arnold <JofArnold@users.noreply.github.com>
date Sun, 03 Sep 2017 14:10:51 +0100
parents 61fde9091c13
children 31b1a5a3b5ff
.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 site/build/ ~/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