Makefile @ 8ae9290fdd58

Fuck
author Steve Losh <steve@stevelosh.com>
date Sat, 11 Nov 2017 13:10:41 -0500
parents 7ebe839363e8
children 243f388e5efb
.PHONY: vendor binary clean deploy update-deps

# 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

bin/magitek: $(lisps)
	sbcl --load "src/build.lisp"

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

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

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