File: rules

package info (click to toggle)
python-pymzml 0.7.6-dfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 66,128 kB
  • ctags: 335
  • sloc: python: 2,428; makefile: 142; sh: 38
file content (53 lines) | stat: -rwxr-xr-x 1,590 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
43
44
45
46
47
48
49
50
51
52
53
#! /usr/bin/make -f

export DH_VERBOSE = 1
export PYBUILD_NAME = pymzml

TMPDIR="debian/tmp"
DOCDIR="debian/doc"
SRCDIR=$(CURDIR)

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

override_dh_compress:

	dh_compress -X get_example_file.py -X pymzml.pdf

override_dh_clean:
	dh_clean
	rm -fv debian/source/include-binaries

override_dh_install:
	dh_install
# Remove the symbolic link.
	rm -fv debian/python-pymzml/usr/share/doc/python-pymzml/example_scripts/pymzml
	rm -fv debian/python3-pymzml/usr/share/doc/python3-pymzml/example_scripts/pymzml

# Remove all the pyc files.
	rm -fv debian/python-pymzml/usr/share/doc/python-pymzml/example_scripts/*.pyc
	rm -fv debian/python3-pymzml/usr/share/doc/python3-pymzml/example_scripts/*.pyc

# Remove the license file
	rm -fv debian/python-pymzml/usr/share/doc/python-pymzml/COPYING.txt
	rm -fv debian/python3-pymzml/usr/share/doc/python3-pymzml/COPYING.txt

	rm -fv debian/python-pymzml-doc/usr/share/doc/python-pymzml-doc/COPYING.txt

# Make sure we list properly all the binary files that are made during
# the documentation build in debian/source/include-binaries:

	sh debian/list-binary-files.sh

override_dh_auto_build-indep:
	cp -prf Documentation_src Documentation_src-bkp && \
	rm -rf Documentation_src/build/* && \
	cd Documentation_src && \
	make html latexpdf && \
	cd $(SRCDIR) && \
	mkdir -p $(DOCDIR) && \
	rm -rf $(DOCDIR)/* && \
	cp -rpvf Documentation_src/build/html $(DOCDIR) && \
	cp -v Documentation_src/build/latex/pymzml.pdf $(DOCDIR) && \
	rm -rf Documentation_src && \
	mv Documentation_src-bkp Documentation_src