chiark / gitweb /
provide tg2quilt to handle most quilt stuff
[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
31
32 binary-arch: build install
33 binary-indep: build install
34         dh_testdir
35         dh_testroot
36         dh_installchangelogs
37         dh_installdocs
38         dh_compress
39         dh_fixperms
40         dh_installdeb
41         dh_gencontrol
42         dh_md5sums
43         dh_builddeb
44
45 binary: binary-indep binary-arch
46 .PHONY: build clean binary-indep binary-arch binary install configure