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
20 REPOSITORYDIR := $(prefix)/usr/share/common-lisp/repositories/${pkg}
21 DOCDIR := $(prefix)/usr/share/doc/${debpkg}
24 configure: configure-stamp
27 # Add here commands to configure the package.
34 build-stamp: configure-stamp
37 # 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.*
59 # Add here commands to install the package into debian/uffi.
60 $(INSTALL) $(INSTALLFLAGS) $(shell echo src/*.cl *.system) $(REPOSITORYDIR)
61 $(INSTALL) $(INSTALLFLAGS) $(shell echo src/mcl/*.cl) $(REPOSITORYDIR)/mcl
62 $(INSTALL) $(INSTALLFLAGS) doc/html/* $(DOCDIR)/html
63 cp doc/uffi.ps doc/cl-uffi.ps
64 rm -f doc/cl-uffi.ps.gz
66 $(INSTALL) $(INSTALLFLAGS) doc/cl-uffi.ps.gz $(DOCDIR)
67 rm -f doc/cl-uffi.ps.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