r1846: debian updates
[ctsim.git] / debian / rules
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper.
3 # GNU copyright 1997 to 1999 by Joey Hess.
4
5 # Uncomment this to turn on verbose mode.
6 export DH_VERBOSE=1
7
8 # This is the debhelper compatibility version to use.
9 export DH_COMPAT=3
10
11 pkg     := ctsim
12 prefix  := debian/$(pkg)
13 DESTDIR := `pwd`/$(prefix)
14
15 INSTALL := install
16 INSTALLFLAGS    := -g root -o root -m 0644
17 INSTALLDIRFLAGS := -d -g root -o root -m 0755
18
19 configure: configure-stamp
20 configure-stamp:
21         dh_testdir
22         # Add here commands to configure the package.
23         ./configure --prefix=$(DESTDIR)/usr --mandir=$(DESTDIR)/usr/share/man
24         touch configure-stamp
25
26
27 build: build-stamp
28
29 build-stamp: configure-stamp 
30         dh_testdir
31
32         # Add here commands to compile the package.
33         $(MAKE) 
34         #/usr/bin/docbook-to-man debian/uffi.sgml > uffi.1
35
36         touch build-stamp
37
38 clean:
39         dh_testdir
40         dh_testroot
41         rm -f build-stamp configure-stamp
42
43         # Add here commands to clean up after the build process.
44         -$(MAKE) distclean
45         find . -type f -and -name *~ -or -name .*~ -exec rm -f {} \;
46         rm -f debian/ctsim.postinst.* debian/ctsim.prerm.*
47
48         dh_clean
49
50 install: build
51         dh_testdir
52         dh_testroot
53         dh_clean -k
54         dh_installdirs
55
56         # Add here commands to install the package into debian/ctsim.
57         # install ${INSTALLDIRFLAGS} 
58         ${MAKE} install
59
60 # Build architecture-independent files here.
61 binary-indep: build install
62
63
64
65 # Build architecture-dependent files here.
66 binary-arch: build install
67         dh_testdir
68         dh_testroot
69 #       dh_installdebconf       
70         dh_installdocs
71         dh_installexamples tools/sample-ctsim.sh helical/sample-helical.sh
72 #       dh_installmenu
73 #       dh_installlogrotate
74 #       dh_installemacsen
75 #       dh_installpam
76 #       dh_installmime
77 #       dh_installinit
78 #       dh_installcron
79 #       dh_installman
80 #       dh_installinfo
81 #       dh_undocumented
82         dh_installchangelogs ChangeLog
83         dh_link
84         dh_strip
85         dh_compress
86         dh_fixperms
87 #       dh_makeshlibs
88         dh_installdeb
89 #       dh_perl
90 #       dh_shlibdeps
91         dh_gencontrol
92         dh_md5sums
93         dh_builddeb
94
95 binary: binary-indep binary-arch
96 .PHONY: build clean binary-indep binary-arch binary install configure
97