2 # Sample debian/rules that uses debhelper.
3 # GNU copyright 1997 to 1999 by Joey Hess.
5 # Uncomment this to turn on verbose mode.
8 # This is the debhelper compatibility version to use.
14 UPSTREAM_VER := $(shell sed -n -e "s/${debpkg} (\(.*\)-[0-9.]).*/\1/p" < debian/changelog |head -1)
16 pkg-ver := $(debpkg)-$(UPSTREAM_VER)
17 clc-source := usr/share/common-lisp/source
18 clc-systems := usr/share/common-lisp/systems
19 clc-uffi := $(clc-source)/$(pkg)-$(UPSTREAM_VER)
21 doc-dir := usr/share/doc/${debpkg}
22 lispfiles := $(clc-uffi)
25 configure: configure-stamp
28 # Add here commands to configure the package.
35 build-stamp: configure-stamp
38 # Add here commands to compile the package.
45 rm -f build-stamp configure-stamp
47 # Add here commands to clean up after the build process.
49 rm -f debian/cl-uffi.postinst.* debian/cl-uffi.prerm.*
57 dh_installdirs --all $(clc-systems) $(clc-source)
58 dh_installdirs -p $(debpkg) $(doc-dir) $(lispfiles)/mcl
60 # Add here commands to install the package into debian/uffi.
61 dh_install "src/*.cl" "*.system" $(lispfiles)
62 dh_install "src/mcl/*.cl" $(lispfiles)/mcl
65 (cd doc; tar xzf html.tar.gz; cd ..)
66 dh_install doc/html $(doc-dir)
68 cp doc/uffi.pdf doc/cl-uffi.pdf
69 gzip -9 doc/cl-uffi.pdf
70 dh_install doc/cl-uffi.pdf.gz $(doc-dir)
72 # Build architecture-independent files here.
73 binary-indep: build install
76 # Build architecture-dependent files here.
77 binary-arch: build install
82 dh_installexamples examples/*.cl
93 dh_installchangelogs ChangeLog
97 dh_link -p $(debpkg) $(clc-uffi) $(clc-source)/$(pkg)
106 binary: binary-indep binary-arch
107 .PHONY: build clean binary-indep binary-arch binary install configure