9 prefix := debian/$(pkg)
10 prefix-help := debian/$(pkg-help)
11 prefix-doc := debian/$(pkg-doc)
13 DESTDIR := `pwd`/$(prefix)
14 HELPDIR := `pwd`/$(prefix-help)/usr/share/ctsim
15 doc-dir := usr/share/doc/$(pkg-doc)
16 pixmap-dir := usr/X11R6/include/X11/pixmaps
18 configure: configure-stamp
21 # Add here commands to configure the package.
22 ./configure --prefix=$(DESTDIR)/usr --mandir=$(DESTDIR)/usr/share/man --datadir=$(HELPDIR) --with-ctn
26 build-arch: configure-stamp build-arch-stamp
29 # Add here commands to compile the package.
31 touch build-arch-stamp
33 build-indep: configure-stamp build-indep-stamp
36 # Add here command to compile/build the arch indep package.
37 # It's ok not to do anything here, if you don't need to build
38 # anything for this package.
39 #/usr/bin/docbook-to-man debian/#PACKAGE#.sgml > #PACKAGE#.1
40 (cd docs; tar xzf html.tar.gz)
41 touch build-indep-stamp
43 build: build-arch build-indep
48 rm -f build-arch-stamp build-indep-stamp configure-stamp
49 # Add here commands to clean up after the build process.
51 find . -type f -and -name \*~ -or -name .\*~ -exec rm -f {} \;
52 rm -f debian/ctsim.postinst.* debian/ctsim.prerm.*
61 # Add here commands to install the package into debian/uffi.
63 dh_installdirs -p $(pkg) $(pixmap-dir)
64 dh_install -p $(pkg) debian/ctsim.xpm $(pixmap-dir)
65 dh_install -p $(pkg-doc) docs/html $(doc-dir)
66 dh_link -p $(pkg-doc) $(doc-dir)/html/$(pkg)_contents.html $(doc-dir)/html/index.html
67 gzip -9 docs/ctsim.pdf
68 dh_install -p $(pkg-doc) docs/ctsim.pdf.gz $(doc-dir)
69 gunzip docs/ctsim.pdf.gz
71 # Build architecture-independent files here.
72 # Pass -i to all debhelper commands in this target to reduce clutter.
73 binary-indep: build install
76 # dh_installdebconf -i
80 # dh_installlogrotate -i
81 # dh_installemacsen -i
89 dh_installchangelogs ChangeLog -i
99 # Build architecture-dependent files here.
100 binary-arch: build install
103 # dh_installdebconf -a
105 dh_installexamples -a tools/sample-ctsim.sh helical/sample-helical.sh
107 # dh_installlogrotate -a
108 # dh_installemacsen -a
116 dh_installchangelogs ChangeLog -a
129 binary: binary-indep binary-arch
131 .PHONY: build clean binary-indep binary-arch binary install configure