[l10n-russian CVS] repository-howto Makefile,NONE,1.1

Yuri Kozlov debian-l10n-russian@lists.debian.org
Sun, 12 Jun 2005 04:41:05 +0000


Update of /cvsroot/l10n-russian/repository-howto
In directory haydn:/tmp/cvs-serv20672/repository-howto

Added Files:
	Makefile 
Log Message:
initial cvs version

--- NEW FILE: Makefile ---
MANUAL = repository-howto
LANG = ru

all: html
pot: $(MANUAL).xml
	po4a-gettextize -f xml -m $(MANUAL).xml -p $(MANUAL).pot

$(MANUAL).$(LANG).xml: $(LANG).po
	po4a-translate -f xml 0 -m $(MANUAL).xml -p $(LANG).po -l $(MANUAL).$(LANG).xml

html: $(MANUAL).$(LANG).xml
	xsltproc --nonet --stringparam l10n.gentext.language $(LANG) \
		--stringparam chunker.output.encoding utf-8 \
		/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/html/onechunk.xsl \
		$(MANUAL).$(LANG).xml
	mv index.html $(MANUAL).$(LANG).html

#all: html pdf # dvi ps # god damn dvi and ps don't work

fo: $(MANUAL).$(LANG).xml
	xsltproc --catalogs -o $@ \
	/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/fo/docbook.xsl \
	$<
	# workaround to avoid -4pc -4pc on top of each page which is currently
	# only partially catched by
	# /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/fo/pagesetup.xsl
	sed 's/margin-left="1in - -4pc"/margin-left="1in"/g' $@ > $@.tmp && mv $@.tmp $@
	rm -f *.fmt

%.dvi:  %.fo
	# needs being run twice to generate toc
	xmltex --interaction=batchmode $<
	xmltex --interaction=batchmode $<

%.ps:  %.dvi
	dvips $<

%.pdf: %.fo
	# needs being run twice to generate toc
	# yes, this is suboptimal but it's the easiest way
	pdfxmltex --interaction=batchmode $<
	pdfxmltex --interaction=batchmode $<

.PHONY: all dvi fo html pdf ps xml pot