File: rules

package info (click to toggle)
xpn 1.2.6-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 2,500 kB
  • ctags: 1,685
  • sloc: python: 12,693; xml: 206; makefile: 16; sh: 1
file content (25 lines) | stat: -rwxr-xr-x 599 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
#!/usr/bin/make -f
# -*- makefile -*-

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

XP=xsltproc --nonet \
			--param man.charmap.use.subset "0" \
			--param make.year.ranges "1" \
			--param make.single.year.ranges "1" \
			-o debian/

manpages: xpn.1
xpn.1: debian/xpn.1.xml
	$(XP) $<

override_dh_install:
	dh_install
	install -m 644 $(CURDIR)/debian/xpn-wrapper.sh $(CURDIR)/debian/xpn/usr/bin/xpn
	chmod a+x $(CURDIR)/debian/xpn/usr/bin/xpn
	find $(CURDIR)/debian/xpn/ -name "xpn.pot" -delete
	find $(CURDIR)/debian/xpn/usr/share/xpn/ -type f -exec chmod 644 {} \;

%:
	dh $@