File: rules

package info (click to toggle)
python-bottle 0.10.11-1%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,332 kB
  • sloc: python: 4,605; makefile: 191
file content (40 lines) | stat: -rwxr-xr-x 969 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
#!/usr/bin/make -f
# -*- makefile -*-

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

override_dh_auto_test:
	# do nothing
	# testing disabled due to bugs -- see #640266

override_dh_auto_build:
	dh_auto_build -Spython_distutils
	for i in plugins/*; do \
		dh_auto_build -Spython_distutils -D$$i -Bbuild/; \
	done
	$(MAKE) -C docs dirhtml

override_dh_auto_install:
	dh_auto_install -Spython_distutils
	rm -rf $(CURDIR)/debian/python-bottle-doc/usr/share/doc/python-bottle-doc/api/_images/myface_small.png

override_dh_installdocs:
	dh_installdocs
	mv $(CURDIR)/debian/python-bottle-doc/usr/share/doc/python-bottle-doc/dirhtml/ \
	   $(CURDIR)/debian/python-bottle-doc/usr/share/doc/python-bottle-doc/api/

override_dh_compress:
	dh_compress -Xpython-bottle-doc/api

override_dh_auto_clean:
	dh_auto_clean -Spython_distutils
	$(MAKE) -C docs clean

override_dh_installchangelogs:
	dh_installchangelogs docs/changelog.rst


%:
	dh $@ \
		--with python2