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)
13 DESTDIR := `pwd`/$(prefix)
14 SHAREDOCDIR := $(DESTDIR)/usr/share/$(pkg)
17 INSTALLFLAGS := -g root -o root -m 0644
18 INSTALLDIRFLAGS := -d -g root -o root -m 0755
20 configure: configure-stamp
23 # Add here commands to configure the package.
24 ./configure --prefix=$(DESTDIR)/usr --mandir=$(DESTDIR)/usr/share/man
30 build-stamp: configure-stamp
32 # Add here commands to compile the package.
34 (cd doc; $(MAKE) htmlhelp)
40 rm -f build-stamp configure-stamp
41 # Add here commands to clean up after the build process.
43 find . -type f -and -name \*~ -or -name .\*~ -exec rm -f {} \;
44 rm -f debian/ctsim.postinst.* debian/ctsim.prerm.*
53 # Add here commands to install the package into debian/ctsim.
54 # install ${INSTALLDIRFLAGS}
56 $(INSTALL) $(INSTALLFLAGS) $(shell echo src/*.htb) $(SHAREDOCDIR)
58 # Build architecture-independent files here.
59 binary-indep: build install
63 # Build architecture-dependent files here.
64 binary-arch: build install
68 dh_installdocs doc/html
69 dh_installexamples tools/sample-ctsim.sh helical/sample-helical.sh
80 dh_installchangelogs ChangeLog
93 binary: binary-indep binary-arch
94 .PHONY: build clean binary-indep binary-arch binary install configure