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.
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 $(INSTALL) $(INSTALLFLAGS) $(shell echo src/*.cl *.system) $(REPOSITORYDIR)
62 $(INSTALL) $(INSTALLFLAGS) $(shell echo src/mcl/*.cl) $(REPOSITORYDIR)/mcl
63 $(INSTALL) $(INSTALLFLAGS) doc/html/* $(DOCDIR)/html
64 cp doc/uffi.ps doc/cl-uffi.ps
65 rm -f doc/cl-uffi.ps.gz
67 $(INSTALL) $(INSTALLFLAGS) doc/cl-uffi.ps.gz $(DOCDIR)
68 rm -f doc/cl-uffi.ps.gz
70 # Build architecture-independent files here.
71 binary-indep: build install
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