File: rules

package info (click to toggle)
microbegps 1.0.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 166,876 kB
  • sloc: python: 2,786; makefile: 12
file content (17 lines) | stat: -rwxr-xr-x 493 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

export DH_VERBOSE := 1
export PYBUILD_NAME=microbegps
INTERPRETER=python3

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

override_dh_install:
	dh_install
	mkdir -p debian/$(PYBUILD_NAME)/usr/share/$(PYBUILD_NAME)
	mv debian/$(PYBUILD_NAME)/usr/lib/$(INTERPRETER)*/dist-packages/microbegps/data debian/$(PYBUILD_NAME)/usr/share/$(PYBUILD_NAME)

override_dh_link:
	dh_link
	dh_link /usr/share/$(PYBUILD_NAME)/data /usr/lib/$(INTERPRETER)/dist-packages/$(PYBUILD_NAME)/data