9 clc-source := usr/share/common-lisp/source
10 clc-systems := usr/share/common-lisp/systems
11 clc-uffi := $(clc-source)/$(pkg)
13 doc-dir := usr/share/doc/${debpkg}
14 lispfiles := $(clc-uffi)
17 configure: configure-stamp
20 # Add here commands to configure the package.
27 build-stamp: configure-stamp
30 # Add here commands to compile the package.
37 rm -f build-stamp configure-stamp
39 # Add here commands to clean up after the build process.
41 rm -f debian/cl-uffi.postinst.* debian/cl-uffi.prerm.*
49 dh_installdirs --all $(clc-systems) $(clc-source)
50 dh_installdirs -p $(debpkg) $(doc-dir) $(lispfiles)/mcl
52 # Add here commands to install the package into debian/uffi.
53 dh_install "uffi.system" $(clc-systems)
54 dh_install "src/*.cl" $(lispfiles)
55 dh_install "src/mcl/*.cl" $(lispfiles)/mcl
58 (cd doc; tar xzf html.tar.gz; cd ..)
59 dh_install doc/html $(doc-dir)
61 cp doc/uffi.pdf doc/cl-uffi.pdf
62 gzip -9 doc/cl-uffi.pdf
63 dh_install doc/cl-uffi.pdf.gz $(doc-dir)
65 # Build architecture-independent files here.
66 binary-indep: build install
69 # Build architecture-dependent files here.
70 binary-arch: build install
75 dh_installexamples examples/*.cl
86 dh_installchangelogs ChangeLog
90 dh_link -p $(debpkg) $(clc-uffi) $(clc-source)/$(pkg)
99 binary: binary-indep binary-arch
100 .PHONY: build clean binary-indep binary-arch binary install configure