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 SOURCESDEST := $(prefix)/usr/share/common-lisp/repositories/uffi
19 SYSDIR := $(prefix)/usr/share/common-lisp/systems
20 DOCDIR := $(prefix)/usr/share/doc/cl-uffi
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.
38 #/usr/bin/docbook-to-man debian/uffi.sgml > uffi.1
45 rm -f build-stamp configure-stamp
47 # Add here commands to clean up after the build process.
58 # Add here commands to install the package into debian/uffi.
59 $(INSTALL) $(INSTALLDIRFLAGS) $(SOURCESDEST) $(SOURCESDEST)/mcl $(SYSDIR) $(DOCDIR) $(DOCDIR)/html
60 $(INSTALL) $(INSTALLFLAGS) uffi.system.debian $(SYSDIR)
61 mv $(SYSDIR)/uffi.system.debian $(SYSDIR)/uffi.system
62 $(INSTALL) $(INSTALLFLAGS) $(shell echo src/*.cl) $(SOURCESDEST)
63 $(INSTALL) $(INSTALLFLAGS) $(shell echo src/mcl/*.cl) $(SOURCESDEST)/mcl
64 $(INSTALL) $(INSTALLFLAGS) doc/html/* $(DOCDIR)/html
65 cp doc/uffi.ps doc/cl-uffi.ps
66 rm -f doc/cl-uffi.ps.gz
68 $(INSTALL) $(INSTALLFLAGS) doc/cl-uffi.ps.gz $(DOCDIR)
69 rm -f doc/cl-uffi.ps.gz
71 # Build architecture-independent files here.
72 binary-indep: build install
73 # We have nothing to do by default.
75 # Build architecture-dependent files here.
76 binary-arch: build install
81 dh_installexamples examples/*.cl
92 dh_installchangelogs ChangeLog
105 binary: binary-indep binary-arch
106 .PHONY: build clean binary-indep binary-arch binary install configure