File: rules

package info (click to toggle)
pysph 1.0~b1-8
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 8,096 kB
  • sloc: python: 56,578; cpp: 206; makefile: 199; sh: 165
file content (34 lines) | stat: -rwxr-xr-x 1,371 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

export USE_TRILINOS=1
export ZOLTAN_INCLUDE=/usr/include/trilinos
export ZOLTAN_LIBRARY=/usr/lib
export NPROCS=2
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export PYBUILD_TEST_ARGS=\
-k "not test_sph_evaluator \
and not TestInterpolator \
and not test_get_points_from_mgrid \
and not test_get_surface_points_uniform \
and not test_compressed_octree_has_lesser_depth_than_octree \
and not test_parallel_compressed_octree_has_lesser_depth_than_parallel_octree \
and not test_ldcavity_example"

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_auto_build: export http_proxy=127.0.0.1:9
execute_after_dh_auto_build: export https_proxy=127.0.0.1:9
execute_after_dh_auto_build:
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
	env PYTHONPATH=$(shell pybuild --build -i python3 -s custom --build-args 'echo {build_dir}') \
	python3 -m sphinx -b html -N -E -T $(CURDIR)/docs/source $(CURDIR)/.pybuild/docs/html
	find $(CURDIR)/.pybuild/docs/html -type f -print0 | xargs --no-run-if-empty -0 sed -i 's/https:\/\/www.youtube.com//g'
endif

execute_after_dh_auto_install:
	chmod -x $(CURDIR)/debian/*/usr/lib/python3.*/*-packages/pysph/examples/shallow_water/okushiri_tsunami_input_files/*.bz2
	chmod -x $(CURDIR)/debian/*/usr/lib/python3.*/*-packages/pysph/examples/shallow_water/okushiri_tsunami_input_files/*.txt

execute_after_dh_auto_clean:
	$(MAKE) clean