chiark / gitweb /
Merge tag 'topgit-0.8' of git://repo.or.cz/topgit
[topgit.git] / debian / rules
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 TG_BRANCHES="fixes/ensure-worktree debian/locations"
7
8 include /usr/share/quilt/quilt.make
9 include debian/tg2quilt.mk
10
11 build: build-stamp
12 build-stamp: patch
13         dh_testdir
14         $(MAKE) prefix=/usr
15         touch $@
16
17 clean: unpatch
18         dh_testdir
19         dh_testroot
20         rm -f build-stamp
21         $(MAKE) clean
22         dh_clean
23
24 install: build
25         dh_testdir
26         dh_testroot
27         dh_clean -k
28         dh_installdirs
29         $(MAKE) DESTDIR=$(CURDIR)/debian/topgit prefix=/usr install
30         rm -f $(wildcard $(CURDIR)/debian/topgit/usr/share/topgit/*.txt)
31         dh_install
32         install -m644 contrib/tg-completion.bash debian/topgit/etc/bash_completion.d/topgit
33
34
35 binary-arch: build install
36 binary-indep: build install
37         dh_testdir
38         dh_testroot
39         dh_installchangelogs
40         dh_installdocs
41         dh_compress
42         dh_fixperms
43         dh_installdeb
44         dh_gencontrol
45         dh_md5sums
46         dh_builddeb
47
48 binary: binary-indep binary-arch
49 .PHONY: build clean binary-indep binary-arch binary install configure