File: rules

package info (click to toggle)
pyocd 0.36.0-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 341,308 kB
  • sloc: xml: 3,682,260; python: 59,213; ansic: 112; makefile: 87; asm: 25; sh: 14
file content (29 lines) | stat: -rwxr-xr-x 985 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
28
29
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1

export PYBUILD_NAME=pyocd

# Prevent setuptools/distribute from accessing the internet.
export http_proxy = http://127.0.9.1:9


%:
	dh $@ --buildsystem=pybuild

override_dh_auto_build:
	python3 setup.py build
	rst2man debian/pyocd-gdbserver.rst > debian/pyocd-gdbserver.1
	rst2man debian/pyocd-tool.rst > debian/pyocd-tool.1
	rst2man debian/pyocd-flashtool.rst > debian/pyocd-flashtool.1

override_dh_auto_install:
	python3 setup.py install --root=$(CURDIR)/debian/python3-pyocd/ --install-layout=deb
	echo "version = '0.13.1'" > $(CURDIR)/debian/python3-pyocd/usr/lib/python3/dist-packages/pyocd/_version.py
	dh_installman -ppython3-pyocd debian/pyocd-gdbserver.1
	dh_installman -ppython3-pyocd debian/pyocd-tool.1
	dh_installman -ppython3-pyocd debian/pyocd-flashtool.1

execute_after_dh_auto_clean:
	${RM} -r .eggs pyocd/_version.py