File: rules

package info (click to toggle)
drslib 0.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,544 kB
  • sloc: python: 6,119; xml: 988; makefile: 128; sh: 121
file content (35 lines) | stat: -rwxr-xr-x 805 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
32
33
34
35
#!/usr/bin/make -f

# The magic debhelper rule:
%:
	dh $@  --buildsystem=pybuild

# export DH_VERBOSE=1

PYTHON3=$(shell py3versions -vr)



build-python%:
	python$* setup.py build

override_dh_auto_build: $(PYTHON3:%=build-python%)
	dh_auto_build

override_dh_auto_test:
	@echo Disabling tests for this release

override_dh_auto_clean:
	dh_auto_clean
	rm -rf build
	rm -rf *.egg-info

install-python%:
	python$* setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb

override_dh_auto_install: $(PYTHON3:%=install-python%)
	dh_auto_install
	find debian -name '*.xls' -exec chmod -x {} \;
	find debian -name '*.csv' -exec chmod -x {} \;
	mkdir -p debian/drslib//usr/share/bash-completion/completions/
	cp debian/drslibCompletion.bash debian/drslib//usr/share/bash-completion/completions/drslib