r1854: *** empty log message ***
[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         # Add here commands to compile the package.
32         $(MAKE) 
33         touch build-stamp
34
35 clean:
36         dh_testdir
37         dh_testroot
38         rm -f build-stamp configure-stamp
39         # Add here commands to clean up after the build process.
40         -$(MAKE) distclean
41         find . -type f -and -name \*~ -or -name .\*~ -exec rm -f {} \;
42         rm -f debian/ctsim.postinst.* debian/ctsim.prerm.*
43         dh_clean
44
45 install: build
46         dh_testdir
47         dh_testroot
48         dh_clean -k
49         dh_installdirs
50
51         # Add here commands to install the package into debian/ctsim.
52         # install ${INSTALLDIRFLAGS} 
53         ${MAKE} install
54
55 # Build architecture-independent files here.
56 binary-indep: build install
57
58
59
60 # Build architecture-dependent files here.
61 binary-arch: build install
62         dh_testdir
63         dh_testroot
64 #       dh_installdebconf       
65         dh_installdocs doc/html
66         dh_installexamples tools/sample-ctsim.sh helical/sample-helical.sh
67 #       dh_installmenu
68 #       dh_installlogrotate
69 #       dh_installemacsen
70 #       dh_installpam
71 #       dh_installmime
72 #       dh_installinit
73 #       dh_installcron
74 #       dh_installman
75 #       dh_installinfo
76 #       dh_undocumented
77         dh_installchangelogs ChangeLog
78 #       dh_link
79         dh_strip
80         dh_compress
81         dh_fixperms
82 #       dh_makeshlibs
83         dh_installdeb
84 #       dh_perl
85 #       dh_shlibdeps
86         dh_gencontrol
87         dh_md5sums
88         dh_builddeb
89
90 binary: binary-indep binary-arch
91 .PHONY: build clean binary-indep binary-arch binary install configure
92