c97a2f6213bba5cf52f5b69432d567cae7697852
[vcs-tree.git] / debian / rules
1 #!/usr/bin/make -f
2
3 pkg     := vcs-tree
4 debpkg  := vcs-tree
5
6
7 bin-dir         := usr/bin
8 doc-dir         := usr/share/doc/$(debpkg)
9
10 configure: configure-stamp
11 configure-stamp:
12         dh_testdir
13         # Add here commands to configure the package.
14         touch configure-stamp
15
16
17 build: build-stamp
18
19 build-stamp: configure-stamp 
20         dh_testdir
21         # Add here commands to compile the package.
22         $(MAKE) _${pkg}
23         touch build-stamp
24
25 clean:
26         dh_testdir
27         dh_testroot
28         rm -f build-stamp configure-stamp
29         # Add here commands to clean up after the build process.
30         $(MAKE) clean
31         rm -f debian/${debpkg}.postinst.* debian/${debpkg}.prerm.*
32         dh_clean
33
34 install: build
35         dh_testdir
36         dh_testroot
37         dh_clean -k
38         # Add here commands to install the package into debian/xlunit.
39         dh_installdirs $(bin-dir)
40         dh_install $(pkg) $(bin-dir)
41         dh_install _$(pkg) $(bin-dir)
42
43 # Build architecture-independent files here.
44 binary-indep: build install
45
46
47 # Build architecture-dependent files here.
48 binary-arch: build install
49         dh_testdir
50         dh_testroot
51 #       dh_installdebconf       
52         dh_installdocs 
53         dh_installexamples
54 #       dh_installmenu
55 #       dh_installlogrotate
56 #       dh_installemacsen
57 #       dh_installpam
58 #       dh_installmime
59 #       dh_installinit
60 #       dh_installcron
61         dh_installman $(pkg).1
62 #       dh_installinfo
63 #       dh_undocumented
64         dh_installchangelogs 
65         # don't strip sbcl binary or will remove vcs-tree code
66         dh_strip -X_$(pkg)
67         dh_compress
68         dh_fixperms
69 #       dh_makeshlibs
70         dh_installdeb
71 #       dh_perl
72         dh_shlibdeps
73         dh_gencontrol
74         dh_md5sums
75         dh_builddeb
76
77 binary: binary-indep binary-arch
78 .PHONY: build clean binary-indep binary-arch binary install configure
79