File: rules

package info (click to toggle)
pywbem 0.8.0~dev650-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 872 kB
  • ctags: 1,115
  • sloc: python: 10,652; xml: 101; makefile: 19
file content (32 lines) | stat: -rwxr-xr-x 828 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
#!/usr/bin/make -f

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

PACKAGE = python-pywbem
DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
XP     = xsltproc -''-nonet -''-param man.charmap.use.subset "0"
DEFAULT_PYLIB = $(call py_libdir,$(shell pyversions -d))



%.1: debian/%.1.xml
	$(XP) $(DB2MAN) $<


clean: 
	dh $@ --with python2
	rm -f wbemcli.py.1

%: wbemcli.py.1
	dh $@ --with python2

binary binary-arch binary-indep: wbemcli.py.1
	dh $@ --with python2

override_dh_installman: wbemcli.py.1
	install -d debian/python-pywbem/usr/share/man/man1/
	man --recode UTF-8 ./wbemcli.py.1 > debian/python-pywbem/usr/share/man/man1/wbemcli.py.1
	chmod 644 debian/python-pywbem/usr/share/man/man1/wbemcli.py.1

.PHONY: binary binary-arch binary-indep install build clean clean-patched