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/doc/$(pkg)
15 SHAREDATADIR := $(DESTDIR)/usr/share/$(pkg)/.
18 INSTALLFLAGS := -g root -o root -m 0644
19 INSTALLDIRFLAGS := -d -g root -o root -m 0755
21 configure: configure-stamp
24 # Add here commands to configure the package.
25 ./configure --prefix=$(DESTDIR)/usr --mandir=$(DESTDIR)/usr/share/man --datadir=$(SHAREDATADIR)
31 build-stamp: configure-stamp
33 # Add here commands to compile the package.
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.*
52 # Add here commands to install the package into debian/ctsim.
54 $(INSTALL) $(INSTALLFLAGS) $(shell echo docs/html/*) $(SHAREDOCDIR)/html
55 ln -sf $(pkg)_contents.html $(SHAREDOCDIR)/html/index.html
56 $(INSTALL) $(INSTALLFLAGS) docs/ctsim.pdf $(SHAREDOCDIR)
57 GZIP=-9 gzip $(SHAREDOCDIR)/ctsim.pdf
59 # Build architecture-independent files here.
60 binary-indep: build install
63 # Build architecture-dependent files here.
64 binary-arch: build install
68 dh_installdocs docs/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