1 #!/usr/bin/make -f
2 # debian/rules for git-completion
3 #
4 # Written by Sebastian Harl <sh@tokkee.org>
6 # Uncomment this to turn on verbose mode.
7 #export DH_VERBOSE=1
9 completion_dir="$(CURDIR)/debian/git-completion/etc/bash_completion.d"
11 configure: configure-stamp
13 configure-stamp:
14 dh_testdir
15 touch configure-stamp
17 build: build-stamp
19 build-stamp: configure-stamp
20 dh_testdir
21 touch build-stamp
23 clean:
24 dh_testdir
25 dh_testroot
26 rm -f build-stamp configure-stamp
27 dh_clean
29 install: build
30 dh_testdir
31 dh_testroot
32 dh_clean -k
33 dh_installdirs
35 install -d -m 0755 $(completion_dir)
37 for file in cg git gitk stg; do \
38 install -m 0644 $(CURDIR)/$$file-compl $(completion_dir)/$$file; \
39 done
41 install -m 0644 $(CURDIR)/git-compl-lib $(completion_dir)/git-common
43 binary-indep: build install
44 dh_testdir
45 dh_testroot
46 dh_installchangelogs
47 dh_installdocs
48 dh_compress
49 dh_fixperms
50 dh_installdeb
51 dh_gencontrol
52 dh_md5sums
53 dh_builddeb
55 binary-arch: build install
56 # nothing to do here
58 binary: binary-indep binary-arch
59 .PHONY: build clean binary-indep binary-arch binary install configure