File: rules

package info (click to toggle)
git-flow 1.12.3-3
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 640 kB
  • sloc: sh: 1,366; makefile: 49
file content (25 lines) | stat: -rwxr-xr-x 909 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
#! /usr/bin/make -f

completion_VERSION	= 0.5.2

PKGDIR			= debian/git-flow

override_dh_auto_build:

override_dh_auto_install:
	${MAKE} -f debian/install.mk debian-install DESTDIR=$(PKGDIR)
	install -m 0644 CHANGELOG.md \
		$(PKGDIR)/usr/share/doc/git-flow/changelog
	install -m 0644 completion/git-flow-completion.bash \
		$(PKGDIR)/usr/share/bash-completion/completions/git-flow
	install -m 0644 completion/git-flow-completion.zsh \
		$(PKGDIR)/usr/share/zsh/vendor-completions/_git-flow

get-orig-source: upstream_version := $(shell (uscan --report-status 2>/dev/null || true) | grep "Newest version" | sed -e "s#Newest version on remote site is \([0-9\.]*\).*#\1#")
get-orig-source:
	uscan --force-download --rename --destdir ../
	wget -q https://github.com/petervanderdoes/git-flow-completion/archive/$(completion_VERSION).tar.gz \
		-O ../git-flow_$(upstream_version).orig-completion.tar.gz

%:
	dh $@