File: rules

package info (click to toggle)
r-cran-fastcluster 1.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 616 kB
  • sloc: cpp: 2,705; python: 854; makefile: 35; sh: 11
file content (34 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
#!/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 $@ --buildsystem=pybuild --sourcedirectory=src/python

override_dh_auto_clean:
	dh_auto_clean || true

	if test -d src; then			\
		find src -name "*.o"  -delete ; \
		find src -name "*.so" -delete ; \
	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_numpy3
	dh_install
	find debian -name LICENSE -delete