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 build:
13 clean:
14 dh_testdir
15 dh_testroot
16 dh_clean
18 install: build
19 dh_testdir
20 dh_testroot
21 dh_clean -k
22 dh_installdirs
24 install -d -m 0755 $(completion_dir)
26 for file in cg git gitk stg; do \
27 install -m 0644 $(CURDIR)/$$file-compl $(completion_dir)/$$file; \
28 done
30 install -m 0644 $(CURDIR)/git-compl-lib $(completion_dir)/git-common
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
44 binary-arch: build install
45 # nothing to do here
47 binary: binary-indep binary-arch
48 .PHONY: build clean binary-indep binary-arch binary install