r1851: *** 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
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         cp -a doc/html $(DESTDIR)/usr/share/doc/${PKG}
60
61 # Build architecture-independent files here.
62 binary-indep: build install
63
64
65
66 # Build architecture-dependent files here.
67 binary-arch: build install
68         dh_testdir
69         dh_testroot
70 #       dh_installdebconf       
71 #       dh_installdocs
72         dh_installexamples tools/sample-ctsim.sh helical/sample-helical.sh
73 #       dh_installmenu
74 #       dh_installlogrotate
75 #       dh_installemacsen
76 #       dh_installpam
77 #       dh_installmime
78 #       dh_installinit
79 #       dh_installcron
80 #       dh_installman
81 #       dh_installinfo
82 #       dh_undocumented
83         dh_installchangelogs ChangeLog
84 #       dh_link
85         dh_strip
86         dh_compress
87         dh_fixperms
88 #       dh_makeshlibs
89         dh_installdeb
90 #       dh_perl
91 #       dh_shlibdeps
92         dh_gencontrol
93         dh_md5sums
94         dh_builddeb
95
96 binary: binary-indep binary-arch
97 .PHONY: build clean binary-indep binary-arch binary install configure
98