File: rules

package info (click to toggle)
python-cs 1.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 112 kB
  • ctags: 55
  • sloc: python: 462; makefile: 10
file content (16 lines) | stat: -rwxr-xr-x 453 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-

export PYBUILD_DESTDIR_python2=debian/python-cs/
export PYBUILD_DESTDIR_python3=debian/python3-cs/

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

override_dh_install:
	dh_install
	# Move cs executable in its dedicated package
	mkdir -p debian/cs/usr/bin
	mv debian/python3-cs/usr/bin/cs debian/cs/usr/bin/cloudstack
	rm -rf debian/python-cs/usr/bin
	rm -rf debian/python3-cs/usr/bin