X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/259726f3c3f1d40c56b0d24c370fca4290f49e06..2c6153373f927d948a74b283ebb16330af8ee49a:/debian/rules diff --git a/debian/rules b/debian/rules index cec98bb..005d451 100755 --- a/debian/rules +++ b/debian/rules @@ -1,2 +1,16 @@ #! /usr/bin/make -f %:; dh $@ --parallel -Bdebian/build + +## The `sbuild' tool sets a fake `home' directory which doesn't exist. This +## breaks ASDF, which wants to write FASL files into `~/.cache/common-lisp/'. +## Set an explicit cache directory for it, and clear away the FASL cache +## directory on clean. +export XDG_CACHE_HOME := $(shell pwd)/debian/build/cache +override_dh_auto_clean: + dh_auto_clean + rm -rf debian/build/cache + rm -f doc/*.pdf + +## Don't strip the main executable. (It doesn't work, and you get left with +## a bare SBCL.) +override_dh_strip:; dh_strip -Xusr/bin/sod