File: rules

package info (click to toggle)
python-mzml 0.7.4-dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 996 kB
  • ctags: 160
  • sloc: python: 1,807; makefile: 133; sh: 18
file content (34 lines) | stat: -rwxr-xr-x 1,095 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

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

%:
	dh $@ --with python2 --buildsystem=python_distutils

# dh_compress insists on compressing that file:
override_dh_compress:

	dh_compress -X get_example_file.py -X pymzml.pdf

override_dh_install:
	dh_install -iv -O--buildsystem=python_distutils
	ls -lR debian/python-mzml/usr/share/doc/python-mzml/example_scripts/
# Remove the symbolic link.
	rm debian/python-mzml/usr/share/doc/python-mzml/example_scripts/pymzml
# Remove the license file
	rm -f debian/python-mzml/usr/share/doc/python-mzml/COPYING.txt
	rm -f debian/python-mzml-doc/usr/share/doc/python-mzml-doc/COPYING.txt
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