File: rules

package info (click to toggle)
python-ldap-doc 2.3-2.1
  • links: PTS
  • area: contrib
  • in suites: squeeze
  • size: 200 kB
  • ctags: 121
  • sloc: python: 661; makefile: 44
file content (18 lines) | stat: -rwxr-xr-x 539 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk

Doc/version.tex: debian/changelog
	set -e; \
	v=`dpkg-parsechangelog | sed -n 's/^Version: //p'`; \
	v=$${v%-*}; \
	d=`dpkg-parsechangelog | sed -n 's/^Date: //p'`; \
	d=`LC_TIME=C date +"%B %e, %Y" -d "$$d"`; \
	printf "\\\\release{$$v}\\\\setshortversion{$$v}\\\\date{$$d}" > $@

build/python-ldap-doc:: Doc/version.tex
	cd Doc && $(MAKE) python-ldap/index.html && rm -f python-ldap/*.idx

clean::
	$(MAKE) -C Doc clean