File: rules

package info (click to toggle)
pyro 1%3A3.14-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,048 kB
  • ctags: 1,988
  • sloc: python: 11,194; xml: 128; sh: 52; makefile: 28
file content (40 lines) | stat: -rwxr-xr-x 963 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
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

DB2MAN=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
XP=xsltproc -''-nonet

%.1: %.1.xml
	$(XP) -o $@ $(DB2MAN) $< 

%:
	dh $@ --with python2

build: debian/pyro-gui.1
	dh_testdir
	[ -r setup.cfg.upstream ] || cp setup.cfg setup.cfg.upstream
	cp debian/setup.cfg .
	dh $@

clean:
	dh $@
	rm -f build debian/pyro-gui.1
	[ ! -r setup.cfg.upstream ] || mv setup.cfg.upstream setup.cfg

override_dh_install:
	dh_install -ppyro -Xwxnsc.py -Xxnsc.py
	dh_install -Npyro -Xdocs/LICENSE

override_dh_fixperms:
	dh_fixperms
	find $(CURDIR)/debian/pyro-examples -type f -name '*.py' | \
		xargs grep -L '#!/usr/bin' | \
		xargs chmod 644
	find $(CURDIR)/debian/pyro-examples -type f -name '*.txt' | \
		xargs chmod 644

override_dh_installinit:
	dh_installinit -ppyro --name=pyro-nsd

.PHONY: build clean override_dh_installinit override_dh_install override_dh_fixperms