File: rules

package info (click to toggle)
vcversioner 2.16.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 148 kB
  • sloc: python: 451; makefile: 150
file content (16 lines) | stat: -rwxr-xr-x 449 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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.

include /usr/share/dpkg/pkg-info.mk

%:
	echo $(DEB_VERSION_UPSTREAM)-0-0 > version.txt
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_clean:
	dh_auto_clean
	rm -f version.txt