File: Makefile

package info (click to toggle)
python-ldap-doc 2.3-1
  • links: PTS
  • area: contrib
  • in suites: lenny
  • size: 200 kB
  • ctags: 121
  • sloc: python: 661; makefile: 44
file content (37 lines) | stat: -rw-r--r-- 1,166 bytes parent folder | download | duplicates (3)
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
# $Id: Makefile,v 1.14 2007/03/22 23:25:16 stroeder Exp $

PYTHONSRC=	/home/michael/src/Python-2.5
DOCTOOLSDIR=	$(PYTHONSRC)/Doc/tools
PAPER=		a4
DVIPS=		dvips -N0 -t $(PAPER)
PYTHON=		python
MKHOWTO=	$(DOCTOOLSDIR)/mkhowto
MKDVI=		$(MKHOWTO) --dvi
MKPDF=		$(MKHOWTO) --pdf
TEXINPUTS=	$(PYTHONSRC)/Doc/texinputs::
ENV=		/usr/bin/env TEXINPUTS=$(TEXINPUTS)

SRCS=python-ldap.tex ldap.tex version.tex ldif.tex ldapurl.tex \
     ldap-async.tex ldap-modlist.tex ldap-schema.tex

all: python-ldap.dvi python-ldap.ps python-ldap.pdf python-ldap/index.html

python-ldap/index.html: $(SRCS)
	$(ENV) $(MKHOWTO) --html python-ldap.tex
python-ldap.ps: python-ldap.dvi
	$(ENV) $(DVIPS) -o python-ldap.ps python-ldap.dvi
python-ldap.dvi: $(SRCS)
	$(ENV) $(MKDVI) python-ldap.tex
python-ldap.pdf: $(SRCS)
	$(ENV) $(MKPDF) python-ldap.tex
version.tex:
	v=`${PYTHON} ../setup.py --version`; \
	d=`date +"%B %e, %Y"`; \
	echo "%release{$$v}%setshortversion{$$v}%date{$$d}" | tr % "\\\\" >$@
clean:
	rm -f *~ *.bck *.aux *.idx *.ilg *.ind *.log *.toc 
	rm -f *.bkm *.syn *.pla *.l2h *.how
	rm -f python-ldap.dvi python-ldap.ps python-ldap.pdf
	rm -f version.tex
	rm -rf python-ldap