Makefile @ da5525d2638c

Maybe I should test things
author Steve Losh <steve@stevelosh.com>
date Sat, 14 Apr 2018 01:16:05 -0400
parents 5db3d9b9894b
children 4df358dc538b
.PHONY: vendor binary clean deploy update-deps force-binary

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

vendor: vendor/quickutils.lisp

# Clean -----------------------------------------------------------------------
clean:
	rm -rf bin

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

binary: bin/magitek

force-binary:
	rm -f bin/magitek
	sbcl --load "src/build.lisp"

bin/magitek: $(lisps)
	force-binary

# Deploy ----------------------------------------------------------------------

# Server
update-deps:
	hg -R /home/sjl/lib/cl-losh     -v pull -u
	hg -R /home/sjl/lib/chancery    -v pull -u
	hg -R /home/sjl/lib/flax        -v pull -u
	hg -R /home/sjl/lib/cl-pcg      -v pull -u

# Local
deploy:
	rsync --exclude=bin --exclude=.hg --exclude=database.sqlite --exclude='*.fasl' --exclude='*.png' --exclude='*.pnm'  -avz . jam:/home/sjl/src/magitek
	ssh jam make -C /home/sjl/src/magitek update-deps force-binary