File: rules

package info (click to toggle)
germinate 2.46
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 488 kB
  • sloc: python: 4,823; perl: 47; makefile: 18; sh: 1
file content (25 lines) | stat: -rwxr-xr-x 743 bytes parent folder | download | duplicates (2)
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

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

export LC_ALL := C.UTF-8
export PERL_VENDORLIB := $(shell perl -MConfig -e 'print $$Config{vendorlib}')
export PYBUILD_NAME := germinate
export PYBUILD_INSTALL_ARGS_python3 := \
	--install-scripts=../germinate/usr/bin \
	--install-data=../germinate/usr

%:
	dh $@ --with python3 --buildsystem=pybuild

execute_before_dh_auto_build:
	sed -i 's/^version = .*/version = $(DEB_VERSION)/' setup.cfg

execute_after_dh_auto_build:
	set -e; for script in dh_germinate_clean dh_germinate_metapackage; do \
		pod2man -c Debhelper -r $(DEB_VERSION) \
			debhelper/$$script debhelper/$$script.1; \
	done

execute_before_dh_auto_clean:
	sed -i 's/^version = .*/version = $(DEB_VERSION)/' setup.cfg