support git repositories
[vcs-tree.git] / debian / rules
1 #!/usr/bin/make -f
2
3 pkg     := vcs-tree
4 debpkg  := vcs-tree
5 bin-dir := usr/bin
6
7 build: build-stamp
8
9 build-stamp:
10         dh_testdir
11         $(MAKE) _${pkg}
12         touch build-stamp
13
14 clean:
15         dh_testdir
16         dh_testroot
17         rm -f build-stamp configure-stamp
18         $(MAKE) clean
19         rm -f debian/${debpkg}.postinst.* debian/${debpkg}.prerm.*
20         dh_clean
21
22 install: build
23         dh_testdir
24         dh_testroot
25         dh_prep
26         dh_installdirs $(bin-dir)
27         dh_install $(pkg) $(bin-dir)
28         dh_install _$(pkg) $(bin-dir)
29
30 binary-indep:
31
32 binary-arch: install
33         dh_testdir
34         dh_testroot
35         dh_installdocs 
36         dh_installexamples
37         dh_installman $(pkg).1
38         dh_link usr/share/man/man1/$(pkg).1 usr/share/man/man1/_$(pkg).1
39         dh_installchangelogs 
40         # don't strip sbcl binary or will remove vcs-tree code
41         dh_strip -X_$(pkg)
42         dh_compress
43         dh_fixperms
44         dh_installdeb
45         dh_shlibdeps
46         dh_gencontrol
47         dh_md5sums
48         dh_builddeb
49
50 binary: binary-arch
51
52
53 .PHONY: build clean binary-indep binary-arch binary install