File: rules

package info (click to toggle)
go2 0.20090829-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 156 kB
  • ctags: 152
  • sloc: python: 844; xml: 141; makefile: 16; sh: 8
file content (24 lines) | stat: -rwxr-xr-x 815 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
#!/usr/bin/make -f

DEB_PYTHON_SYSTEM=pycentral
DBK2MAN_XSL=/usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl
#DBK2MAN_XSL=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
VERSION=$(shell python -c "from go2 import VERSION; print VERSION")

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk

build/go2::
	xsltproc --nonet  --param man.charmap.use.subset "0" $(DBK2MAN_XSL) debian/go2.xml
#	#/usr/bin/docbook-to-man debian/go2.sgml > go2.1

clean::
	-rm go2.1

build-orig-source:
	mkdir -p go2-$(VERSION)
	tar --exclude=debian --exclude=\*~ --exclude=.svn --exclude=\*.pyc \
		--exclude=go2-$(VERSION) -cf - . \
		| ( cd go2-$(VERSION) && tar xf - )
	tar -czf ../tarballs/go2_$(VERSION).orig.tar.gz go2-$(VERSION)
	$(RM) -r go2-$(VERSION)