File: rules

package info (click to toggle)
ipy 1%3A1.01-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 268 kB
  • sloc: python: 1,774; makefile: 47; sh: 7
file content (41 lines) | stat: -rwxr-xr-x 848 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/make -f

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

PYTHON3S:=$(shell py3versions -vr)

%:
	dh $@ --with python3

override_dh_auto_build:
	set -e && for pyvers in $(PYTHON3S); do \
		python$$pyvers setup.py build; \
	done

override_dh_auto_install:
	set -e && for pyvers in $(PYTHON3S); do \
		python$$pyvers setup.py install --install-layout=deb \
			--root $(CURDIR)/debian/python3-ipy; \
	done

override_dh_auto_clean:
	dh_auto_clean
	rm -rf $(CURDIR)/build
IPy.html:
	rst2html README.rst IPy.html

binary: binary-indep
binary-arch:
	# nothing to do here.
binary-indep: $(PYTHON3S:%=test/test-%-stamp) IPy.html
	dh $@ --with python3

test/test-%-stamp:
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
	python$* test/test_IPy.py
	touch $@
endif


.PHONY: install get-orig-source binary binary-arch binary-indep