chiark / gitweb /
Update packaging copyright to GPLv2 and include 2009
[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 include /usr/share/quilt/quilt.make
7 include debian/tg2quilt.mk
8
9 build: build-stamp
10 build-stamp: patch
11         dh_testdir
12         $(MAKE) prefix=/usr
13         touch $@
14
15 clean: unpatch
16         dh_testdir
17         dh_testroot
18         rm -f build-stamp
19         $(MAKE) clean
20         dh_clean
21
22 install: build
23         dh_testdir
24         dh_testroot
25         dh_clean -k
26         dh_installdirs
27         $(MAKE) DESTDIR=$(CURDIR)/debian/topgit prefix=/usr install
28         rm -f $(wildcard $(CURDIR)/debian/topgit/usr/share/topgit/*.txt)
29         dh_install
30         install -m644 contrib/tg-completion.bash debian/topgit/etc/bash_completion.d/topgit
31
32
33 binary-arch: build install
34 binary-indep: build install
35         dh_testdir
36         dh_testroot
37         dh_installchangelogs
38         dh_installdocs
39         dh_compress
40         dh_fixperms
41         dh_installdeb
42         dh_gencontrol
43         dh_md5sums
44         dh_builddeb
45
46 binary: binary-indep binary-arch
47 .PHONY: build clean binary-indep binary-arch binary install configure