File: rules

package info (click to toggle)
yp-svipc 0.16-7
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 336 kB
  • sloc: ansic: 2,165; python: 261; makefile: 62
file content (42 lines) | stat: -rwxr-xr-x 1,086 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
39
40
41
42
#!/usr/bin/make -f

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

# This has to be exported to make some magic below work.
export DH_OPTIONS

CFLAGS += $(CPPFLAGS)

%:
	dh $@ --buildsystem=pybuild

yorick/Makefile.orig:
	cp -n yorick/Makefile yorick/Makefile.orig
yorick-configure: yorick/Makefile.orig
	cd yorick; yorick -batch make.i
override_dh_auto_configure: yorick-configure
	dh_auto_configure

override_dh_auto_build:
	dh_auto_build
	set -ex; for python in $(shell py3versions -r); do \
	  $$python setup.py build; \
	done;
	cd yorick; make COPT_DEFAULT="" \
	                Y_CFLAGS="$(CFLAGS)" \
	                Y_LDFLAGS="$(LDFLAGS)" \
	                PKG_CFLAGS="-I ../common"

override_dh_auto_install:
	dh_auto_install
	dh_numpy3 -ppython3-svipc
#	set -ex; for python in $(shell py3versions -r); do \
#	  $$python setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \
#	done;
	dh_installyorick --no-make-install

override_dh_auto_clean: yorick-configure
	dh_auto_clean
	rm -Rf build
	cd yorick; make distclean; mv Makefile.orig Makefile