File: rules

package info (click to toggle)
sqlreduce 1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,172 kB
  • sloc: python: 1,026; sql: 40; sh: 22; makefile: 14
file content (21 lines) | stat: -rwxr-xr-x 571 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
#!/usr/bin/make -f

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

export PYBUILD_NAME=sqlreduce

override_dh_auto_test:
	pg_virtualenv dh_auto_test

ifeq ($(filter $(DEB_BUILD_PROFILES),cross),)
execute_after_dh_auto_install:
	# build manpage
	PYTHONPATH=$(firstword $(wildcard $(CURDIR)/debian/sqlreduce/usr/lib/python3.*/dist-packages)) \
	help2man --name 'Reduce verbose SQL queries to minimal examples' \
		--version-string "$(DEB_VERSION_UPSTREAM)" \
		--no-info \
		debian/sqlreduce/usr/bin/sqlreduce > docs/sqlreduce.1
endif

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