File: rules

package info (click to toggle)
clustershell 1.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,024 kB
  • sloc: python: 19,609; makefile: 148
file content (31 lines) | stat: -rwxr-xr-x 1,424 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
28
29
30
31
#!/usr/bin/make -f

#export DH_VERBOSE=1
export PYBUILD_NAME=clustershell
export PYBUILD_DESTDIR_python3 = debian/python3-$(PYBUILD_NAME)
export PYBUILD_AFTER_INSTALL_python2 = rm -rf {destdir}/usr/bin {destdir}/etc/clustershell
export PYBUILD_AFTER_INSTALL_python3 = rm -rf {destdir}/etc/clustershell

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

get-orig-tarball:
	uscan --verbose --force-download

override_dh_auto_install:
	dh_auto_install
	dh_movefiles --package=$(PYBUILD_NAME) --sourcedir=$(PYBUILD_DESTDIR_python3) usr/bin
	dh_install --package=$(PYBUILD_NAME) conf/clush.conf etc/clustershell
	dh_install --package=$(PYBUILD_NAME) conf/groups.conf etc/clustershell
	dh_install --package=$(PYBUILD_NAME) conf/groups.conf.d etc/clustershell
	dh_install --package=$(PYBUILD_NAME) conf/groups.d etc/clustershell
	dh_install --package=$(PYBUILD_NAME) debian/clustershell.yaml usr/share/vim/registry
	dh_install --package=$(PYBUILD_NAME) debian/clustershell.yaml usr/share/vim/registry
	dh_install --package=$(PYBUILD_NAME) doc/extras/vim/ftdetect/clustershell.vim usr/share/vim/addons/ftdetect
	dh_install --package=$(PYBUILD_NAME) doc/extras/vim/syntax/clushconf.vim usr/share/vim/addons/syntax
	dh_install --package=$(PYBUILD_NAME) doc/extras/vim/syntax/groupsconf.vim usr/share/vim/addons/syntax

clean:
	dh $@
	rm -rf scripts/nodeset scripts/clush scripts/clubak scripts/cluset lib/ClusterShell.egg-info