File: rules

package info (click to toggle)
python-wheezy.template 0.1.167-1.1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 220 kB
  • ctags: 180
  • sloc: python: 1,119; sh: 20; makefile: 10
file content (15 lines) | stat: -rwxr-xr-x 629 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/make -f

export PYBUILD_NAME=wheezy.template

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

override_dh_auto_install:
	dh_auto_install
	mv debian/python-$(PYBUILD_NAME)/usr/bin/$(PYBUILD_NAME) debian/python-$(PYBUILD_NAME)/usr/bin/$(PYBUILD_NAME)-python2
	mv debian/python3-$(PYBUILD_NAME)/usr/bin/$(PYBUILD_NAME) debian/python3-$(PYBUILD_NAME)/usr/bin/$(PYBUILD_NAME)-python3
	sed -i '1s,.*,#!/usr/bin/python2,' debian/python-$(PYBUILD_NAME)/usr/bin/$(PYBUILD_NAME)-python2
	sed -i '1s,.*,#!/usr/bin/python3,' debian/python3-$(PYBUILD_NAME)/usr/bin/$(PYBUILD_NAME)-python3

.PHONY: override_dh_auto_install