Makefile @ 80ae10ef6b7e

Fix the fucking bitbucket url
author Steve Losh <steve@stevelosh.com>
date Tue, 04 Apr 2017 16:15:23 +0200
parents 678e161802f5
children d6aa232e6306
.PHONY: vendor pubdocs

sourcefiles = $(shell ffind --full-path --literal .lisp)
docfiles = $(shell ls docs/*.markdown)
apidocs = $(shell ls docs/*reference*.markdown)

# Vendor ----------------------------------------------------------------------
vendor/quickutils.lisp: vendor/make-quickutils.lisp
	cd vendor && sbcl --noinform --load make-quickutils.lisp  --eval '(quit)'

vendor: vendor/quickutils.lisp


# Documentation ---------------------------------------------------------------
$(apidocs): $(sourcefiles)
	sbcl --noinform --load docs/api.lisp  --eval '(quit)'

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

docs: docs/build/index.html

pubdocs: docs
	hg -R ~/src/sjl.bitbucket.org pull -u
	rsync --delete -a ./docs/build/ ~/src/sjl.bitbucket.org/chancery
	hg -R ~/src/sjl.bitbucket.org commit -Am 'chancery: Update site.'
	hg -R ~/src/sjl.bitbucket.org push