Makefile @ 31b1a5a3b5ff

Update URLs
author Steve Losh <steve@stevelosh.com>
date Mon, 23 Dec 2019 16:38:39 -0500
parents 61fde9091c13
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