File: rules

package info (click to toggle)
ubelt 1.2.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,880 kB
  • sloc: python: 12,397; sh: 755; makefile: 25
file content (22 lines) | stat: -rwxr-xr-x 593 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
#!/usr/bin/make -f

export PYBUILD_NAME=ubelt

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

execute_after_dh_auto_build:
ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
	PYTHONPATH=$(CURDIR) $(MAKE) -C docs html
	# Avoid external images, but no PoYIsWE.png is here
	sed -i 's/https:\/\/i.imgur.com\/PoYIsWE.png//g' docs/build/html/index.html
endif

execute_after_dh_auto_clean:
ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
	$(MAKE) -C docs clean
endif

override_dh_installdocs:
	dh_installdocs -ppython-ubelt-doc --doc-main-package=python3-ubelt
	dh_installdocs --remaining-packages