chiark / gitweb /
74e8edd9e256edaf9097e5796ca71569faca24fe
[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/topgit.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
30
31 binary-arch: build install
32 binary-indep: build install
33         dh_testdir
34         dh_testroot
35         dh_installchangelogs
36         dh_installdocs
37         dh_compress
38         dh_fixperms
39         dh_installdeb
40         dh_gencontrol
41         dh_md5sums
42         dh_builddeb
43
44 binary: binary-indep binary-arch
45 .PHONY: build clean binary-indep binary-arch binary install configure