File: rules

package info (click to toggle)
platformio 4.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 31,240 kB
  • sloc: python: 17,532; cpp: 320; makefile: 185; ansic: 174
file content (27 lines) | stat: -rwxr-xr-x 791 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
23
24
25
26
27
#!/usr/bin/make -f

export DH_VERBOSE = 1
export PYBUILD_VERBOSE = 1

export PYBUILD_NAME = platformio
export PYBUILD_DESTDIR = debian/$(PYBUILD_NAME)

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

override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=. python3 -m sphinx -j auto -N -bhtml d_docs/ build/html # HTML generator
	PYTHONPATH=. python3 -m sphinx -j auto -N -bman d_docs/ build/man # Manpage generator
	# _static/images have been copied to _images directory with command above, lintian warns with duplicate files so remove them
	rm -rf build/html/_static/images

# Most of the test are trying to download remote files (build environments for IoT)
# therefore disabled.
override_dh_auto_test:
	true

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