Makefile @ 94eb90b8d9f3

Add some docstrings
author Steve Losh <steve@stevelosh.com>
date Wed, 15 Mar 2017 00:23:19 +0000
parents 7781bd17fcdc
children 555f4470bf64
.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/cl-pcg
	hg -R ~/src/sjl.bitbucket.org commit -Am 'cl-pcg: Update site.'
	hg -R ~/src/sjl.bitbucket.org push

# Build -----------------------------------------------------------------------
lisps := $(shell ffind '\.(asd|lisp|ros)$$')

build/pcg: $(lisps)
	ros build build/pcg.ros