4 pkg-tests := $(pkg)-tests
6 debpkg-tests := $(debpkg)-tests
9 clc-source := usr/share/common-lisp/source
10 clc-systems := usr/share/common-lisp/systems
11 clc-files := $(clc-source)/$(pkg)
12 clc-tests := $(clc-source)/$(pkg-tests)
13 doc-dir := usr/share/doc/$(debpkg)
16 configure: configure-stamp
19 # Add here commands to configure the package.
25 build-stamp: configure-stamp
27 # Add here commands to compile the package.
28 (cd examples; make linux)
34 rm -f build-stamp configure-stamp
35 # Add here commands to clean up after the build process.
39 rm -f debian/$(debpkg).postinst.* debian/$(debpkg).prerm.*
46 dh_installdirs --all $(clc-systems) $(clc-source)
47 dh_installdirs -p $(debpkg) $(doc-dir) $(clc-files)/src
49 # Add here commands to install the package into debian/uffi.
50 dh_install $(pkg).asd $(clc-files)
51 dh_install "src/*.lisp" $(clc-files)/src
52 dh_link $(clc-files)/$(pkg).asd $(clc-systems)/$(pkg).asd
54 dh_installdirs -p $(debpkg-tests) $(clc-tests)/tests $(lib-dir)
55 dh_install $(debpkg-tests) $(pkg-tests).asd $(clc-tests)
56 dh_install $(debpkg-tests) "examples/*.lisp" $(clc-tests)/tests
57 dh_install $(debpkg-tests) "examples/c-test-fns.so" $(lib-dir)
58 dh_link $(debpkg-tests) $(clc-tests)/$(pkg-tests).asd $(clc-systems)/$(clc-tests).$(pkg-tests)asd
61 (cd doc; tar xzf html.tar.gz; cd ..)
62 dh_install doc/html $(doc-dir)
64 cp doc/uffi.pdf doc/cl-uffi.pdf
65 gzip -9 doc/cl-uffi.pdf
66 dh_install doc/cl-uffi.pdf.gz $(doc-dir)
68 # Build architecture-independent files here.
69 binary-indep: build install
72 # Build architecture-dependent files here.
73 binary-arch: build install
78 dh_installexamples examples/*.lisp
89 dh_installchangelogs ChangeLog
101 binary: binary-indep binary-arch
102 .PHONY: build clean binary-indep binary-arch binary install configure