File: rules

package info (click to toggle)
awscli 1.16.113-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 9,212 kB
  • sloc: python: 21,415; sh: 36; makefile: 14
file content (23 lines) | stat: -rwxr-xr-x 846 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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

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

override_dh_auto_install:
	python3 setup.py install --root=debian/awscli --install-layout=deb
	mv $(CURDIR)/debian/awscli/usr/bin/aws_bash_completer \
	   $(CURDIR)/debian/awscli/usr/share/bash-completion/completions/aws
	mv $(CURDIR)/debian/awscli/usr/bin/aws_zsh_completer.sh \
	   $(CURDIR)/debian/awscli/usr/share/zsh/vendor-completions/_awscli
	rm $(CURDIR)/debian/awscli/usr/bin/aws.cmd

override_dh_fixperms:
	dh_fixperms
	chmod -x $(CURDIR)/debian/awscli/usr/lib/python3/dist-packages/awscli/examples/*/*.rst
	chmod -x $(CURDIR)/debian/awscli/usr/share/bash-completion/completions/aws
	chmod -x $(CURDIR)/debian/awscli/usr/share/zsh/vendor-completions/_awscli
# override_dh_auto_build: