4 pkg-tests := $(pkg)-tests
6 debpkg-tests := $(debpkg)-tests
8 clc-source := usr/share/common-lisp/source
9 clc-systems := usr/share/common-lisp/systems
10 clc-files := $(clc-source)/$(pkg)
11 clc-tests := $(clc-source)/$(pkg-tests)
12 doc-dir := usr/share/doc/$(debpkg)
13 lib-dir := usr/lib/uffi
15 configure: configure-stamp
23 build-stamp: configure-stamp
31 rm -f build-stamp configure-stamp
33 (cd tests; make clean)
34 rm -f debian/$(debpkg).postinst.* debian/$(debpkg).prerm.*
35 rm -f doc/cl-uffi.pdf.gz
42 dh_installdirs --all $(clc-systems) $(clc-source)
43 dh_installdirs -p $(debpkg) $(doc-dir) $(clc-files)/src
44 dh_install $(pkg).asd $(clc-files)
45 dh_install "src/*.lisp" $(clc-files)/src
46 dh_link $(clc-files)/$(pkg).asd $(clc-systems)/$(pkg).asd
49 (cd doc; tar xzf html.tar.gz; cd ..)
50 dh_install doc/html $(doc-dir)
52 cp doc/uffi.pdf doc/cl-uffi.pdf
53 rm -f doc/cl-uffi.pdf.gz # ensure file not present before making gz
54 gzip -9 doc/cl-uffi.pdf
55 dh_install doc/cl-uffi.pdf.gz $(doc-dir)
57 dh_installdirs -p $(debpkg-tests) $(clc-tests)/tests $(lib-dir)
58 dh_install -p $(debpkg-tests) $(pkg-tests).asd $(clc-tests)
59 dh_install -p $(debpkg-tests) tests/*.lisp tests/*.c $(clc-tests)/tests
60 dh_install -p $(debpkg-tests) tests/*.so $(lib-dir)
61 dh_link -p $(debpkg-tests) $(clc-tests)/$(pkg-tests).asd $(clc-systems)/$(pkg-tests).asd
63 binary-indep: build install
67 dh_installexamples -i examples/*.lisp
71 dh_installchangelogs ChangeLog -i
80 binary-arch: build install
84 dh_installchangelogs ChangeLog -a
96 binary: binary-indep binary-arch
97 .PHONY: build clean binary-indep binary-arch binary install configure