File: rules

package info (click to toggle)
xraylarch 0.9.81%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 118,040 kB
  • sloc: python: 72,754; fortran: 6,978; makefile: 1,878; ansic: 1,562; sh: 155; javascript: 104
file content (27 lines) | stat: -rwxr-xr-x 835 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

export DH_VERBOSE=1
export PYBUILD_NAME=xraylarch
export PYBUILD_AFTER_TEST=rm -rfv {build_dir}/htmlcov/

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_auto_build:
	# generate the desktop files
	cd $(CURDIR)/debian; ./build-desktop

ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS)))
	# build the doc
	env PYTHONPATH=$(shell pybuild --build -i python3 -s custom --build-args 'echo {build_dir}') \
	SPHINXBUILD="python3 -m sphinx" \
	SPHINXOPTS="-D mathjax_path=MathJax.js" \
	$(MAKE) -C doc html
endif

execute_after_dh_auto_install:
	$(RM) debian/python3-xraylarch/usr/bin/feff6l
	$(RM) debian/python3-xraylarch/usr/bin/feff8l
	find -name gse_xrfmap.ico -exec chmod 0644 {} \;
	find examples/ -executable -type f -exec chmod 0644 {} \;
	dh_install -p python3-xraylarch debian/*.desktop ./usr/share/applications/