File: rules

package info (click to toggle)
smbus2 0.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 196 kB
  • sloc: python: 624; makefile: 21
file content (15 lines) | stat: -rwxr-xr-x 480 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/make -f
export PYBUILD_NAME = smbus2

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

execute_after_dh_auto_clean:
	dh_auto_clean
	rm -rf *smbus2.egg-info
	rm -rf doc/_build

override_dh_auto_install-indep:
	cd $(CURDIR)/doc && make html
	cd $(CURDIR)/doc/_build/html && find . -type f -print0 | xargs -0 sed -i 's/https:\/\/img\.shields\.io//g'
	cd $(CURDIR)/doc/_build/html && find . -type f -print0 | xargs -0 sed -i 's/https:\/\/travis-ci\.org//g'