Makefile @ 412677e64c68

Fix docs
author Steve Losh <steve@stevelosh.com>
date Mon, 23 Dec 2019 16:39:54 -0500
parents 31b1a5a3b5ff
children (none)
.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/docs.stevelosh.com pull -u
	rsync --delete -az site/build/ ~/src/docs.stevelosh.com/splice.vim
	hg -R ~/src/docs.stevelosh.com commit -Am 'splice.vim: Update site.'
	hg -R ~/src/docs.stevelosh.com push