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.
13 prefix := debian/$(debpkg)
16 INSTALLFLAGS := -g root -o root -m 0644
17 INSTALLDIRFLAGS := -d -g root -o root -m 0755
19 SOURCEDIR := $(prefix)/usr/share/common-lisp/source/${pkg}
20 DOCDIR := $(prefix)/usr/share/doc/${debpkg}
23 configure: configure-stamp
26 # Add here commands to configure the package.
33 build-stamp: configure-stamp
36 # Add here commands to compile the package.
37 # Make doc isn't necessary because the docs are in the upstream version
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.*
59 # Add here commands to install the package into debian/uffi.
60 $(INSTALL) $(INSTALLFLAGS) $(shell echo src/*.cl *.system) $(SOURCEDIR)
61 $(INSTALL) $(INSTALLFLAGS) $(shell echo src/mcl/*.cl) $(SOURCEDIR)/mcl
62 $(INSTALL) $(INSTALLFLAGS) doc/html/* $(DOCDIR)/html
63 cp doc/uffi.pdf doc/cl-uffi.pdf
64 rm -f doc/cl-uffi.pdf.gz
66 $(INSTALL) $(INSTALLFLAGS) doc/cl-uffi.pdf.gz $(DOCDIR)
67 rm -f doc/cl-uffi.pdf.gz
69 # Build architecture-independent files here.
70 binary-indep: build install
74 # Build architecture-dependent files here.
75 binary-arch: build install
80 dh_installexamples examples/*.cl
91 dh_installchangelogs ChangeLog
104 binary: binary-indep binary-arch
105 .PHONY: build clean binary-indep binary-arch binary install configure