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)
14 lib-dir := usr/lib/uffi
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 tests; make linux)
34 rm -f build-stamp configure-stamp
35 # Add here commands to clean up after the build process.
37 (cd tests; make clean)
38 rm -f debian/$(debpkg).postinst.* debian/$(debpkg).prerm.*
45 dh_installdirs --all $(clc-systems) $(clc-source)
47 # Add here commands to install the package into debian/uffi.
48 dh_installdirs -p $(debpkg) $(doc-dir) $(clc-files)/src
49 dh_install $(pkg).asd $(clc-files)
50 dh_install "src/*.lisp" $(clc-files)/src
51 dh_link $(clc-files)/$(pkg).asd $(clc-systems)/$(pkg).asd
54 (cd doc; tar xzf html.tar.gz; cd ..)
55 dh_install doc/html $(doc-dir)
57 cp doc/uffi.pdf doc/cl-uffi.pdf
58 gzip -9 doc/cl-uffi.pdf
59 dh_install doc/cl-uffi.pdf.gz $(doc-dir)
61 dh_installdirs -p $(debpkg-tests) $(clc-tests)/tests $(lib-dir)
62 dh_install -p $(debpkg-tests) $(pkg-tests).asd $(clc-tests)
63 dh_install -p $(debpkg-tests) "tests/*.lisp" $(clc-tests)/tests
64 dh_install -p $(debpkg-tests) "tests/uffi-c-test-lib.so" $(lib-dir)
65 dh_link -p $(debpkg-tests) $(clc-tests)/$(pkg-tests).asd $(clc-systems)/$(pkg-tests).asd
67 # Build architecture-independent files here.
68 binary-indep: build install
71 # dh_installdebconf -i
73 dh_installexamples -i examples/*.lisp
75 # dh_installlogrotate -i
76 # dh_installemacsen -i
84 dh_installchangelogs ChangeLog -i
94 # Build architecture-dependent files here.
95 binary-arch: build install
98 # dh_installdebconf -a
100 # dh_installlogrotate -a
101 # dh_installemacsen -a
111 dh_installchangelogs ChangeLog -a
123 binary: binary-indep binary-arch
124 .PHONY: build clean binary-indep binary-arch binary install configure