File: rules

package info (click to toggle)
galternatives 1.0.10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 580 kB
  • sloc: python: 1,287; makefile: 48
file content (20 lines) | stat: -rwxr-xr-x 408 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f
#export DH_VERBOSE = 1

export PYBUILD_NAME=galternatives

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

VERSION := $(shell echo '$(DEB_VERSION_UPSTREAM)' | sed -e 's/\+.*$$//')


%:
	dh $@ --buildsystem=pybuild

execute_before_dh_auto_clean:
	$(RM) galternatives/version.py

galternatives/version.py:
	echo 'VERSION = "$(VERSION)"' > $@

execute_before_dh_auto_configure: galternatives/version.py