File: rules

package info (click to toggle)
zsh-syntax-highlighting 0.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 832 kB
  • ctags: 67
  • sloc: sh: 414; makefile: 78; perl: 8
file content (22 lines) | stat: -rwxr-xr-x 756 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
#!/usr/bin/make -f
NAME=zsh-syntax-highlighting
PREFIX=/usr

# Remove COPYING.md as duplicate of /usr/share/doc/.../copyright
override_dh_auto_install:
	dh_auto_install -- PREFIX=$(PREFIX)
	rm debian/$(NAME)/usr/share/doc/$(NAME)/COPYING.md

# Remove 'changelog.md' which both upstream and debhelper install to different names
override_dh_installchangelogs:
	dh_installchangelogs
	rm debian/$(NAME)/usr/share/doc/$(NAME)/changelog.md

%:
	dh $@

_origtar: version=$(shell dpkg-parsechangelog -SVersion | sed 's/-[^-]*$$//')
_origtar:
	git tag --verify $(version)
	git archive --format=tar --output=../zsh-syntax-highlighting_$(version).orig.tar --prefix=zsh-syntax-highlighting-$(version)/ $(version)
	xz -7v ../zsh-syntax-highlighting_$(version).orig.tar