File: rules

package info (click to toggle)
pyftdi 0.54.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,068 kB
  • sloc: python: 11,163; sh: 24; makefile: 14
file content (19 lines) | stat: -rwxr-xr-x 531 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
#!/usr/bin/make -f
export PYBUILD_NAME = ftdi

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

override_dh_auto_clean:
	dh_auto_clean
	rm -rf *ftdi.egg-info

override_dh_auto_test:
ifeq (,$(filter $(DEB_HOST_ARCH), s390x))
	PYTHONPATH=$(CURDIR) python3 $(CURDIR)/pyftdi/tests/mockusb.py
endif

override_dh_auto_install-indep:
	sphinx-build -W -b html ./pyftdi/doc ./pyftdi/doc/html
	cd $(CURDIR)/pyftdi/doc/html && find . -type f -print0 | xargs -0 sed -i 's/https:\/\/fonts.googleapis.com//g'
	dh_auto_install -i