File: rules

package info (click to toggle)
s4cmd 2.0.1%2Bds-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 324 kB
  • ctags: 364
  • sloc: python: 1,542; sh: 614; makefile: 20
file content (27 lines) | stat: -rwxr-xr-x 651 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
24
25
26
27
#!/usr/bin/make -f
# -*- makefile -*-

PACKAGE_NAME=s4cmd
PACKAGE_DIR=$(CURDIR)/debian/$(PACKAGE_NAME)
SHARE_DIR=/usr/share/$(PACKAGE_NAME)

%:
	dh $@ --with python2

override_dh_auto_clean:
	S4CMD_PACKAGING=1 python setup.py clean
	rm -f s4cmd.1

override_dh_installman:
	help2man --no-discard-stderr --version-string='2.0.1' \
		 -n 'Super Amazon S3 command line tool' -N \
		 -i debian/extra-man-description.txt \
		 ./s4cmd > s4cmd.1
	dh_installman

override_dh_auto_install:
	dh_bash-completion
	S4CMD_PACKAGING=1 python setup.py install --no-compile \
		 --root $(PACKAGE_DIR) \
		 --install-lib $(SHARE_DIR) \
		 --install-scripts $(SHARE_DIR)