File: rules

package info (click to toggle)
sphinxcontrib-emojicodes 0.3.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 392 kB
  • sloc: python: 167; makefile: 22; javascript: 9
file content (22 lines) | stat: -rwxr-xr-x 568 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
#!/usr/bin/make -f

#export DH_VERBOSE=1

export PYBUILD_NAME = sphinxemoji

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

ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
execute_after_dh_auto_build:
	PYTHONPATH=$$(pwd) make -C docs html
	# Privacy protection
	perl -i -p0e 's%<p>\n<iframe src="https://ghbtns.com/.*\n.*</iframe>\n</p>\n%%' docs/build/html/*.html
endif

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

execute_after_dh_auto_clean:
	rm -rf docs/build