File: rules

package info (click to toggle)
python-meshio 4.3.11-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,464 kB
  • sloc: python: 13,177; makefile: 50
file content (33 lines) | stat: -rwxr-xr-x 945 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
#! /usr/bin/make -f

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

export PYBUILD_NAME=meshio
export PYBUILD_DESTDIR_python3=debian/python3-$(PYBUILD_NAME)

# Don't install files generated by the test suite (#892019).
export PYBUILD_AFTER_TEST=find {build_dir} -maxdepth 1 -type f -delete

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_clean:
	dh_auto_clean
	rm -f meshio-convert.1 msh2xdmf.1

override_dh_auto_build:
	dh_auto_build
	pandoc -s -t man debian/meshio-convert.md \
		-o meshio-convert.1
	pandoc -s -t man debian/msh2xdmf.md \
		-o msh2xdmf.1

override_dh_auto_install:
	dh_auto_install
	dh_movefiles -pmeshio-tools --sourcedir=debian/python3-meshio usr/bin
	mkdir -p debian/meshio-tools/usr/share
	mv debian/python3-meshio/usr/share/paraview* debian/meshio-tools/usr/share
	cd debian/meshio-tools/usr/share; for p in paraview_*; do \
	  mv $$p `echo $$p | sed "s/paraview_/paraview-/"`; \
	done