Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 #export DH_VERBOSE = 1
3
4 export PYBUILD_NAME=galternatives
5
6 include /usr/share/dpkg/pkg-info.mk
7
8 VERSION := $(shell echo '$(DEB_VERSION_UPSTREAM)' | sed -e 's/\+.*$$//')
9
10 # Mangle VERSION to create PEP440_VERSION for PEP440 compliance.
11 PEP440_VERSION := $(shell echo '$(VERSION)' | sed -E 's/[^0-9.+-].*$$//')
12
13
14 %:
15 dh $@ --buildsystem=pybuild
16
17 execute_before_dh_auto_clean:
18 $(RM) galternatives/version.py
19
20 galternatives/version.py:
21 echo 'VERSION = "$(PEP440_VERSION)"' > $@
22
23 execute_before_dh_auto_configure: galternatives/version.py