8 UPSTREAM_VER := $(shell sed -n -e "s/${debpkg} (\(.*\)-[0-9.]).*/\1/p" < debian/changelog |head -1)
10 pkg-ver := $(debpkg)-$(UPSTREAM_VER)
11 clc-source := usr/share/common-lisp/source
12 clc-systems := usr/share/common-lisp/systems
13 clc-uffi := $(clc-source)/$(pkg)-$(UPSTREAM_VER)
15 doc-dir := usr/share/doc/${debpkg}
16 lispfiles := $(clc-uffi)
19 configure: configure-stamp
22 # Add here commands to configure the package.
29 build-stamp: configure-stamp
32 # Add here commands to compile the package.
39 rm -f build-stamp configure-stamp
41 # Add here commands to clean up after the build process.
43 rm -f debian/cl-uffi.postinst.* debian/cl-uffi.prerm.*
51 dh_installdirs --all $(clc-systems) $(clc-source)
52 dh_installdirs -p $(debpkg) $(doc-dir) $(lispfiles)/mcl
54 # Add here commands to install the package into debian/uffi.
55 dh_install "uffi.system" $(clc-systems)
56 dh_install "src/*.cl" $(lispfiles)
57 dh_install "src/mcl/*.cl" $(lispfiles)/mcl
60 (cd doc; tar xzf html.tar.gz; cd ..)
61 dh_install doc/html $(doc-dir)
63 cp doc/uffi.pdf doc/cl-uffi.pdf
64 gzip -9 doc/cl-uffi.pdf
65 dh_install doc/cl-uffi.pdf.gz $(doc-dir)
67 # Build architecture-independent files here.
68 binary-indep: build install
71 # Build architecture-dependent files here.
72 binary-arch: build install
77 dh_installexamples examples/*.cl
88 dh_installchangelogs ChangeLog
92 dh_link -p $(debpkg) $(clc-uffi) $(clc-source)/$(pkg)
101 binary: binary-indep binary-arch
102 .PHONY: build clean binary-indep binary-arch binary install configure