debian/: Ship `symbols' file for better downstream dependency versioning.
[sod] / debian / rules
... / ...
CommitLineData
1#! /usr/bin/make -f
2%:; dh $@ --parallel --without=autoreconf -Bdebian/build
3
4## The `sbuild' tool sets a fake `home' directory which doesn't exist. This
5## breaks ASDF, which wants to write FASL files into `~/.cache/common-lisp/'.
6## Set an explicit cache directory for it, and clear away the FASL cache
7## directory on clean.
8export XDG_CACHE_HOME := $(shell pwd)/debian/build/cache
9override_dh_auto_clean:
10 dh_auto_clean
11 rm -rf debian/build/cache
12 rm -f doc/*.pdf
13
14## Check that the shared-library symbols are plausible.
15override_dh_makeshlibs:; dh_makeshlibs -- -c4
16
17## Don't strip the main executable. (It doesn't work, and you get left with
18## a bare SBCL.)
19override_dh_strip:; dh_strip -Xusr/bin/sod