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 DOCDIR := $(prefix-doc)/usr/share/doc/ctsim-doc
24 INSTALLFLAGS := -g root -o root -m 0644
25 INSTALLDIRFLAGS := -d -g root -o root -m 0755
27 configure: configure-stamp
30 # Add here commands to configure the package.
31 ./configure --prefix=$(DESTDIR)/usr --mandir=$(DESTDIR)/usr/share/man --datadir=$(HELPDIR) --with-ctn
37 build-stamp: configure-stamp
39 # Add here commands to compile the package.
46 rm -f build-stamp configure-stamp
47 # Add here commands to clean up after the build process.
49 find . -type f -and -name \*~ -or -name .\*~ -exec rm -f {} \;
50 rm -f debian/ctsim.postinst.* debian/ctsim.prerm.*
58 # Below command also installs helpfile
60 $(INSTALL) $(INSTALLFLAGS) debian/ctsim.xpm $(prefix)/usr/X11R6/include/X11/pixmaps
62 $(INSTALL) $(INSTALLFLAGS) $(shell echo docs/html/*) $(DOCDIR)/html
63 ln -sf $(pkg)_contents.html $(DOCDIR)/html/index.html
65 $(INSTALL) $(INSTALLFLAGS) docs/ctsim.pdf $(DOCDIR)
66 gzip -9 $(DOCDIR)/ctsim.pdf
68 # Build architecture-independent files here.
69 binary-indep: build install
72 # Build architecture-dependent files here.
73 binary-arch: build install
78 dh_installexamples tools/sample-ctsim.sh helical/sample-helical.sh
89 dh_installchangelogs ChangeLog
102 binary: binary-indep binary-arch
103 .PHONY: build clean binary-indep binary-arch binary install configure