Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 DH_VERBOSE=1
4
5 export LC_ALL=C.UTF-8
6 export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
7 export PYBUILD_NAME=fastcluster
8
9 # Taken from CDBS file for R.
10 rversion := $(shell dpkg-query -W -f='$${Version}' r-base-dev)
11 rapiversion := $(shell dpkg-query -W -f='$${Provides}' r-base-core | grep -o 'r-api[^, ]*')
12
13 %:
14 dh $@ --buildsystem=pybuild --sourcedirectory=src/python
15
16 override_dh_auto_clean:
17 dh_auto_clean || true
18
19 if test -d src; then \
20 find src -name "*.o" -delete ; \
21 find src -name "*.so" -delete ; \
22 fi
23 rm -f config.log config.status
24 rm -rf tmp-install
25
26 override_dh_auto_install:
27 dh_auto_install -O--buildsystem=R --sourcedirectory=$(CURDIR)
28 mv debian/tmp tmp-install
29 dh_auto_install
30
31 override_dh_install:
32 dh_numpy3
33 dh_install
34 find debian -name LICENSE -delete