Makefile @ b85831aa30bb

Unfuck the test system loading
author Steve Losh <steve@stevelosh.com>
date Fri, 13 Jan 2017 21:54:26 +0000
parents a7af1952d336
children 91983c942160
.PHONY: pubdocs test-sbcl test-ccl test-ecl test vendor

sourcefiles = $(shell ffind --full-path --literal .lisp)
docfiles = $(shell ls docs/*.markdown)
apidoc = docs/03-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 ---------------------------------------------------------------
$(apidoc): $(sourcefiles) docs/api.lisp package.lisp
	sbcl --noinform --load docs/api.lisp  --eval '(quit)'

docs/build/index.html: $(docfiles) $(apidoc) 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/beast
	hg -R ~/src/sjl.bitbucket.org commit -Am 'beast: Update site.'
	hg -R ~/src/sjl.bitbucket.org push

# Testing ---------------------------------------------------------------------
test: test-sbcl test-ccl test-ecl test-abcl

test-sbcl:
	./test/header.sh computer 'SBCL'
	ros run -L sbcl --load test/test-run.lisp

test-ccl:
	./test/header.sh slant 'CCL'
	ros run -L ccl-bin --load test/test-run.lisp

test-ecl:
	./test/header.sh roman 'ECL'
	ros run -L ecl --load test/test-run.lisp

test-abcl:
	./test/header.sh broadway 'ABCL'
	abcl --load test/test-run.lisp