r1840: *** 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
14 INSTALL := install
15 INSTALLFLAGS    := -g root -o root -m 0644
16 INSTALLDIRFLAGS := -d -g root -o root -m 0755
17
18 configure: configure-stamp
19 configure-stamp:
20         dh_testdir
21         # Add here commands to configure the package.
22         ./configure --prefix=${prefix}/usr
23         touch configure-stamp
24
25
26 build: build-stamp
27
28 build-stamp: configure-stamp 
29         dh_testdir
30
31         # Add here commands to compile the package.
32         $(MAKE) 
33         #/usr/bin/docbook-to-man debian/uffi.sgml > uffi.1
34
35         touch build-stamp
36
37 clean:
38         dh_testdir
39         dh_testroot
40         rm -f build-stamp configure-stamp
41
42         # Add here commands to clean up after the build process.
43         -$(MAKE) distclean
44         rm -f debian/ctsim.postinst.* debian/ctsim.prerm.*
45
46         dh_clean
47
48 install: build
49         dh_testdir
50         dh_testroot
51         dh_clean -k
52         dh_installdirs
53
54         # Add here commands to install the package into debian/ctsim.
55         ${MAKE} install
56
57 # Build architecture-independent files here.
58 binary-indep: build install
59
60
61
62 # Build architecture-dependent files here.
63 binary-arch: build install
64         dh_testdir
65         dh_testroot
66 #       dh_installdebconf       
67         dh_installdocs
68 #       dh_installexamples examples/*.cl
69 #       dh_installmenu
70 #       dh_installlogrotate
71 #       dh_installemacsen
72 #       dh_installpam
73 #       dh_installmime
74 #       dh_installinit
75 #       dh_installcron
76         dh_installman
77 #       dh_installinfo
78 #       dh_undocumented
79         dh_installchangelogs ChangeLog
80         dh_link
81         dh_strip
82         dh_compress
83         dh_fixperms
84 #       dh_makeshlibs
85         dh_installdeb
86 #       dh_perl
87 #       dh_shlibdeps
88         dh_gencontrol
89         dh_md5sums
90         dh_builddeb
91
92 binary: binary-indep binary-arch
93 .PHONY: build clean binary-indep binary-arch binary install configure
94