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.
12 prefix := debian/$(pkg)
15 INSTALLFLAGS := -g root -o root -m 0644
16 INSTALLDIRFLAGS := -d -g root -o root -m 0755
18 SOURCEDIR := $(prefix)/usr/share/common-lisp/source
19 REPOSITORYDIR := $(prefix)/usr/share/common-lisp/repositories/uffi
20 SYSDIR := $(prefix)/usr/share/common-lisp/systems
21 DOCDIR := $(prefix)/usr/share/doc/cl-uffi
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.
39 #/usr/bin/docbook-to-man debian/uffi.sgml > uffi.1
46 rm -f build-stamp configure-stamp
48 # Add here commands to clean up after the build process.
50 rm -f debian/cl-uffi.postinst.* debian/cl-uffi.prerm.*
60 # Add here commands to install the package into debian/uffi.
61 cp $(SYSDIR)/uffi.system.debian $(SYSDIR)/uffi.system
62 chmod 0644 $(SYSDIR)/uffi.system
63 chown root.root $(SYSDIR)/uffi.system
64 $(INSTALL) $(INSTALLFLAGS) $(shell echo src/*.cl) $(REPOSITORYDIR)
65 $(INSTALL) $(INSTALLFLAGS) $(shell echo src/mcl/*.cl) $(REPOSITORYDIR)/mcl
66 $(INSTALL) $(INSTALLFLAGS) doc/html/* $(DOCDIR)/html
67 cp doc/uffi.ps doc/cl-uffi.ps
68 rm -f doc/cl-uffi.ps.gz
70 $(INSTALL) $(INSTALLFLAGS) doc/cl-uffi.ps.gz $(DOCDIR)
71 rm -f doc/cl-uffi.ps.gz
73 # Build architecture-independent files here.
74 binary-indep: build install
78 # Build architecture-dependent files here.
79 binary-arch: build install
84 dh_installexamples examples/*.cl
95 dh_installchangelogs ChangeLog
108 binary: binary-indep binary-arch
109 .PHONY: build clean binary-indep binary-arch binary install configure