File: rules

package info (click to toggle)
r-cran-fastcluster 1.1.25-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 540 kB
  • sloc: cpp: 2,703; python: 882; makefile: 38; sh: 11
file content (38 lines) | stat: -rwxr-xr-x 1,005 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
37
38
#!/usr/bin/make -f

DH_VERBOSE=1

export LC_ALL=C.UTF-8
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
export PYBUILD_NAME=fastcluster

# Taken from CDBS file for R.
rversion	:= $(shell dpkg-query -W -f='$${Version}' r-base-dev)
rapiversion	:= $(shell dpkg-query -W -f='$${Provides}' r-base-core | grep -o 'r-api[^, ]*')

%:
	dh $@ --with python2,python3 --buildsystem=pybuild --sourcedirectory=src/python 

override_dh_auto_clean:
	dh_auto_clean || true

	# Parts of the following are taken from the CDBS file for F.
	if test -d src; then				\
		find src -regex ".*\.o" |               \
	        xargs --no-run-if-empty -r rm;          \
		find src src -regex ".*\.so" |          \
		xargs --no-run-if-empty -r rm;		\
	fi
	rm -f config.log config.status
	rm -rf tmp-install

override_dh_auto_install:
	dh_auto_install -O--buildsystem=R --sourcedirectory=$(CURDIR)
	mv debian/tmp tmp-install
	dh_auto_install

override_dh_install:
	dh_numpy
	dh_numpy3
	dh_install
	find debian -name LICENSE -delete