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 pkg-help := ctsim-help
15 prefix := debian/$(pkg)
16 prefix-help := debian/$(pkg-help)
17 prefix-doc := debian/$(pkg-doc)
19 DESTDIR := `pwd`/$(prefix)
20 HELPDIR := `pwd`/$(prefix-help)/usr/share/ctsim
21 doc-dir := usr/share/doc/$(pkg-doc)
22 pixmap-dir := usr/X11R6/include/X11/pixmaps
24 configure: configure-stamp
27 # Add here commands to configure the package.
28 ./configure --prefix=$(DESTDIR)/usr --mandir=$(DESTDIR)/usr/share/man --datadir=$(HELPDIR) --with-ctn
34 build-stamp: configure-stamp
36 # Add here commands to compile the package.
43 rm -f build-stamp configure-stamp
44 # Add here commands to clean up after the build process.
46 find . -type f -and -name \*~ -or -name .\*~ -exec rm -f {} \;
47 rm -f debian/ctsim.postinst.* debian/ctsim.prerm.*
55 # Below command also installs helpfile, man pages
57 dh_installdirs -p $(pkg) $(pixmap-dir)
58 dh_install -p $(pkg) debian/ctsim.xpm $(pixmap-dir)
60 (cd docs; tar xzf html.tar.gz)
61 dh_install -p $(pkg-doc) docs/html $(doc-dir)
62 dh_link -p $(pkg-doc) $(doc-dir)/html/$(pkg)_contents.html $(doc-dir)/html/index.html
63 gzip -9 docs/ctsim.pdf
64 dh_install -p $(pkg-doc) docs/ctsim.pdf.gz $(doc-dir)
66 # Build architecture-independent files here.
67 binary-indep: build install
70 # Build architecture-dependent files here.
71 binary-arch: build install
76 dh_installexamples tools/sample-ctsim.sh helical/sample-helical.sh
87 dh_installchangelogs ChangeLog
100 binary: binary-indep binary-arch
101 .PHONY: build clean binary-indep binary-arch binary install configure