File: rules

package info (click to toggle)
mmtk 2.7.9-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 11,788 kB
  • ctags: 6,600
  • sloc: python: 18,050; ansic: 12,400; makefile: 129; csh: 3
file content (36 lines) | stat: -rwxr-xr-x 765 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
36
#!/usr/bin/make -f

export MMTK_USE_CYTHON=1
export DH_VERBOSE=1

VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p')
PYVERS=$(shell pyversions -vs)

get-orig-source:
	uscan --force-download --upstream-version $(VERSION) --repack

override_dh_auto_clean:
	# remove the cpython generated files distributed by upstream
	rm -f $(patsubst %.pyx,%.c,$(wildcard Src/*.pyx))
	# remove .pyc files
	rm -f $(wildcard Tests/*.pyc)
	# remove the doc
	rm -rf build

override_dh_auto_test:
	dh_auto_test
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
	set -e -x; \
	for py in $(PYVERS); do \
		python$$py setup.py test;\
	done
endif

override_dh_auto_install:
	dh_auto_install
	dh_numpy

%:
	dh $@ --with python2,sphinxdoc

.PHONY: get-orig-source