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.
15 INSTALLFLAGS := -g root -o root -m 0644
17 UPSTREAM_VER := $(shell sed -n -e "s/${debpkg} (\(.*\)-[0-9.]).*/\1/p" < debian/changelog |head -1)
19 pkg-ver := $(debpkg)-$(UPSTREAM_VER)
20 clc-source := usr/share/common-lisp/source
21 clc-systems := usr/share/common-lisp/systems
22 clc-uffi := $(clc-source)/$(pkg)-$(UPSTREAM_VER)
24 doc-dir := usr/share/doc/${debpkg}
25 lispfiles := $(clc-uffi)
28 configure: configure-stamp
31 # Add here commands to configure the package.
38 build-stamp: configure-stamp
41 # Add here commands to compile the package.
48 rm -f build-stamp configure-stamp
50 # Add here commands to clean up after the build process.
52 rm -f debian/cl-uffi.postinst.* debian/cl-uffi.prerm.*
60 dh_installdirs --all $(clc-systems) $(clc-source)
61 dh_installdirs -p $(debpkg) $(doc-dir) $(lispfiles)/mcl
63 # Add here commands to install the package into debian/uffi.
64 dh_install "src/*.cl" "*.system" $(lispfiles)
65 dh_install "src/mcl/*.cl" $(lispfiles)/mcl
68 (cd doc; tar xzf html.tar.gz; cd ..)
69 dh_install doc/html $(doc-dir)
71 cp doc/uffi.pdf doc/cl-uffi.pdf
72 gzip -9 doc/cl-uffi.pdf
73 dh_install doc/cl-uffi.pdf.gz $(doc-dir)
75 # Build architecture-independent files here.
76 binary-indep: build install
79 # Build architecture-dependent files here.
80 binary-arch: build install
85 dh_installexamples examples/*.cl
96 dh_installchangelogs ChangeLog
100 dh_link -p $(debpkg) $(clc-uffi) $(clc-source)/$(pkg)
109 binary: binary-indep binary-arch
110 .PHONY: build clean binary-indep binary-arch binary install configure