Unfuck the makefile for doc publishing
author |
Steve Losh <steve@stevelosh.com> |
date |
Sat, 08 Oct 2016 13:08:50 +0000 |
parents |
04114f5e102d |
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