File: rules

package info (click to toggle)
git-extras 7.3.0-1
  • links: PTS
  • area: main
  • in suites: sid, trixie
  • size: 1,988 kB
  • sloc: sh: 4,235; python: 634; makefile: 146
file content (30 lines) | stat: -rwxr-xr-x 722 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

PKGDIR=$(CURDIR)/debian/git-extras/

override_dh_auto_clean:
	dh_clean
	# autogenerated files
	$(RM) $(CURDIR)/man/*.1 $(CURDIR)/man/*.html
	# test files
	$(RM) -r $(CURDIR)/.pytest_cache/

override_dh_auto_build:
	dh_auto_build -- docs

override_dh_auto_install:
	dh_auto_install -- PREFIX=/usr SYSCONFDIR=/usr/share
	mkdir -p $(PKGDIR)/usr/share/zsh/vendor-completions/
	install -m0644 -p $(CURDIR)/etc/git-extras-completion.zsh \
		$(PKGDIR)/usr/share/zsh/vendor-completions/_git-extras
	rm $(PKGDIR)/usr/bin/git-gh-pages

%:
	dh $@

.PHONY: override_dh_auto_clean override_dh_auto_build \
	override_dh_auto_install