File: rules

package info (click to toggle)
yapf 0.15.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 792 kB
  • ctags: 942
  • sloc: python: 9,980; makefile: 16
file content (26 lines) | stat: -rwxr-xr-x 782 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1
PYVERS=$(shell pyversions -sv)
PY3VERS=$(shell py3versions -sv)
export PYBUILD_NAME=yapf

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

override_dh_auto_install:
	dh_auto_install

	set -e && for pyvers in $(PYVERS); do \
                python$$pyvers setup.py install --install-layout=deb \
                --root $(CURDIR)/debian/yapf; \
                done

	set -e && for pyvers in $(PY3VERS); do \
                python$$pyvers setup.py install --install-layout=deb \
                --root $(CURDIR)/debian/yapf3; \
                done

	mv $(CURDIR)/debian/yapf3/usr/bin/yapf $(CURDIR)/debian/yapf3/usr/bin/yapf3