File: rules

package info (click to toggle)
pastedeploy 3.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 464 kB
  • sloc: python: 1,236; makefile: 106; sh: 17
file content (29 lines) | stat: -rwxr-xr-x 886 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
#!/usr/bin/make -f
# -*- makefile -*-

#export DH_VERBOSE = 1

export PYBUILD_NAME=pastedeploy
export PYBUILD_AFTER_INSTALL=\
rm -rf {destdir}{install_dir}/paste/deploy/paster_templates ;\
rm -rf {destdir}{install_dir}/paste/deploy/__pycache__ ;\
rm {destdir}{install_dir}/.coverage ;\
rm {destdir}{install_dir}/*.pth ;\
rm {destdir}{install_dir}/*/namespace_packages.txt

%:
	dh $@ --buildsystem=pybuild

override_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=src python3 -m sphinx -b html -N docs/ $(CURDIR)/debian/python-pastedeploy-doc/usr/share/doc/python-pastedeploy-doc/html
	dh_sphinxdoc
endif

override_dh_installchangelogs:
	dh_installchangelogs $(CURDIR)/docs/news.rst

override_dh_auto_clean:
	mv tests/fake_packages/FakeApp.egg/FakeApp.egg-info FakeApp.backup
	dh_auto_clean
	mv FakeApp.backup tests/fake_packages/FakeApp.egg/FakeApp.egg-info