Makefile @ 25b0cf6b43f5

Port documentation to d
author Steve Losh <steve@stevelosh.com>
date Sun, 19 Jul 2020 11:36:59 -0400
parents (none)
children (none)
.PHONY: docs pubdocs

docfiles = $(shell ls docs/*.markdown)

# Documentation ---------------------------------------------------------------
docs/build/index.html: $(docfiles) docs/title
	cd docs && ~/.virtualenvs/d/bin/d

docs: docs/build/index.html

pubdocs: docs
	hg -R ~/src/docs.stevelosh.com pull -u
	rsync --delete -a ./docs/build/ ~/src/docs.stevelosh.com/hg-prompt
	hg -R ~/src/docs.stevelosh.com commit -Am 'hg-prompt: Update site.'
	hg -R ~/src/docs.stevelosh.com push