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/clsql
20 SYSDIR := $(prefix)/usr/share/common-lisp/systems
21 DOCDIR := $(prefix)/usr/share/doc/cl-sql
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/clsql.sgml > cl-sql.1
46 rm -f build-stamp configure-stamp
48 # Add here commands to clean up after the build process.
59 # Add here commands to install the package into debian/cl-sql.
60 $(INSTALL) $(INSTALLDIRFLAGS) $(REPOSITORYDIR) $(REPOSITORYDIR)/mcl $(SYSDIR) $(DOCDIR) $(DOCDIR)/html $(SOURCEDIR)
61 $(INSTALL) $(INSTALLFLAGS) clsql.system.debian $(SYSDIR)
62 mv $(SYSDIR)/clsql.system.debian $(SYSDIR)/clsql.system
63 $(INSTALL) $(INSTALLFLAGS) $(shell echo sql/*.cl) $(REPOSITORYDIR)/sql
64 $(INSTALL) $(INSTALLFLAGS) $(shell echo src/interfaces/*.cl) $(REPOSITORYDIR)/interfaces
65 $(INSTALL) $(INSTALLFLAGS) doc/html/* $(DOCDIR)/html
66 cp doc/clsql.ps doc/cl-sql.ps
67 rm -f doc/cl-sql.ps.gz
69 $(INSTALL) $(INSTALLFLAGS) doc/cl-sql.ps.gz $(DOCDIR)
70 rm -f doc/cl-sql.ps.gz
72 # Build architecture-independent files here.
73 binary-indep: build install
77 # Build architecture-dependent files here.
78 binary-arch: build install
83 dh_installexamples examples/*.cl
94 dh_installchangelogs ChangeLog
107 binary: binary-indep binary-arch
108 .PHONY: build clean binary-indep binary-arch binary install configure