chiark / gitweb /
Initial debianisation of 0.2
[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
8 build: build-stamp
9 build-stamp: patch
10         dh_testdir
11         $(MAKE) PREFIX=/usr
12         touch $@
13
14 clean: unpatch
15         dh_testdir
16         dh_testroot
17         rm -f build-stamp
18         $(MAKE) clean
19         dh_clean
20
21 install: build
22         dh_testdir
23         dh_testroot
24         dh_clean -k
25         dh_installdirs
26         $(MAKE) DESTDIR=$(CURDIR)/debian/topgit PREFIX=/usr install
27         rm -f $(wildcard $(CURDIR)/debian/topgit/usr/share/topgit/*.txt)
28
29
30 binary-arch: build install
31 binary-indep: build install
32         dh_testdir
33         dh_testroot
34         dh_installchangelogs
35         dh_installdocs
36         dh_compress
37         dh_fixperms
38         dh_installdeb
39         dh_gencontrol
40         dh_md5sums
41         dh_builddeb
42
43 binary: binary-indep binary-arch
44 .PHONY: build clean binary-indep binary-arch binary install configure