File: rules

package info (click to toggle)
germinate 2.36
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 464 kB
  • sloc: python: 3,947; perl: 47; makefile: 19; sh: 1
file content (25 lines) | stat: -rwxr-xr-x 699 bytes parent folder | download
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

override_dh_auto_build:
	echo '$(DEB_VERSION)' >germinate/version.txt
	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

override_dh_auto_clean:
	echo '$(DEB_VERSION)' >germinate/version.txt
	dh_auto_clean