File: rules

package info (click to toggle)
vcversioner 2.16.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 160 kB
  • ctags: 105
  • sloc: python: 451; makefile: 151
file content (18 lines) | stat: -rwxr-xr-x 494 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

# The setup.py uses vcversioner, so it either expects a git repository
# or a proper dist tarball with a version.txt. As the upstream source
# tarball is neither, we need to trick things into working by creating
# version.txt ourselves.

VERSION := $(shell dpkg-parsechangelog -S version | sed 's,-[^-]*$$,,')

%: version.txt
	dh $@ --with python2,python3 --buildsystem=pybuild

version.txt:
	echo $(VERSION)-0-0 > $@

override_dh_auto_clean:
	dh_auto_clean
	rm version.txt