File: rules

package info (click to toggle)
python-xlib 0.33-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,040 kB
  • sloc: python: 23,022; awk: 89; makefile: 60; sh: 10
file content (32 lines) | stat: -rwxr-xr-x 660 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
26
27
28
29
30
31
32
#!/usr/bin/make -f
#-*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export PYBUILD_NAME=xlib

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_auto_build:
	make -C doc html
	# for some reason makeinfo doesn’t create toc on the first run
	make -C doc html

execute_after_dh_auto_clean:
	make -C doc clean

execute_after_dh_auto_install:
	find debian/python3-xlib -name '*.py' -print0 | xargs -0 dos2unix -q

execute_after_dh_installdocs:
	rm -f debian/*/usr/share/doc/*/*/Makefile

override_dh_compress:
	dh_compress -X.py

override_dh_auto_test:
ifeq (,$(filter nocheck, $(DEB_BUILD_OPTIONS)))
	xvfb-run dh_auto_test
endif