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)
16 INSTALLFLAGS := -g root -o root -m 0644
17 INSTALLDIRFLAGS := -d -g root -o root -m 0755
19 configure: configure-stamp
22 # Add here commands to configure the package.
23 ./configure --prefix=$(DESTDIR)/usr --mandir=$(DESTDIR)/usr/share/man
29 build-stamp: configure-stamp
31 # Add here commands to compile the package.
38 rm -f build-stamp configure-stamp
39 # Add here commands to clean up after the build process.
41 find . -type f -and -name \*~ -or -name .\*~ -exec rm -f {} \;
42 rm -f debian/ctsim.postinst.* debian/ctsim.prerm.*
51 # Add here commands to install the package into debian/ctsim.
52 # install ${INSTALLDIRFLAGS}
55 # Build architecture-independent files here.
56 binary-indep: build install
60 # Build architecture-dependent files here.
61 binary-arch: build install
65 dh_installdocs doc/html
66 dh_installexamples tools/sample-ctsim.sh helical/sample-helical.sh
77 dh_installchangelogs ChangeLog
90 binary: binary-indep binary-arch
91 .PHONY: build clean binary-indep binary-arch binary install configure