/[ddp]/manuals/trunk/faq/pt_BR/Makefile
ViewVC logotype

Contents of /manuals/trunk/faq/pt_BR/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1926 - (show annotations) (download)
Mon Nov 18 19:53:37 2002 UTC (10 years, 6 months ago) by joy
File size: 2013 byte(s)
updated PUBLISHDIR
1 #
2 # Makefile for the Debian FAQ
3 #
4 # Should work both for a manual in the Debian Documentation Project
5 # manuals.sgml tree, and for doc-debian package build.
6
7 manual := debian-faq
8
9 currentlang := $(notdir $(CURDIR))
10 currentlangcn := $(subst _,-,$(shell echo $(currentlang) | tr A-Z a-z))
11
12 # this can and will be overriden by a higher level makefile
13 PUBLISHDIR := /org/www.debian.org/www/doc/manuals
14
15 sources := $(manual).sgml ../faqstatic.ent ../faqdynamic.ent $(wildcard *.sgml)
16
17 export LANG=C
18 # stupid debiandoc stuff uses strings in another language otherwise
19
20 all: html text ps pdf
21
22 publish: all
23 test -d $(PUBLISHDIR)/$(manual) || install -d -m 755 $(PUBLISHDIR)/$(manual)
24 rm -f $(PUBLISHDIR)/$(manual)/*.$(currentlangcn).html
25 install -p -m 644 $(manual).$(currentlang).html/*.html $(PUBLISHDIR)/$(manual)
26 install -p -m 644 $(manual)*.txt $(manual)*.ps $(manual)*.pdf $(PUBLISHDIR)/$(manual)
27
28 ../faqdynamic.ent:
29 cd .. && $(MAKE) faqdynamic.ent
30
31 validate:
32 nsgmls -ges -wall $(manual).sgml
33
34 html: $(manual).$(currentlang).html/index.$(currentlangcn).html
35 $(manual).$(currentlang).html/index.$(currentlangcn).html: $(sources)
36 rm -rf $(manual).html $(manual).$(currentlang).html
37 debiandoc2html -c -l $(currentlang) $<
38 mv $(manual).html $(manual).$(currentlang).html
39
40 text: $(manual).$(currentlang).txt
41 $(manual).$(currentlang).txt: $(sources)
42 debiandoc2text -l $(currentlang) $<
43 mv $(manual).txt $(manual).$(currentlang).txt
44
45 $(manual).$(currentlang).info: $(sources)
46 debiandoc2info -l $(currentlang) $<
47 # TODO: rename to .$(currentlang).info?
48
49 $(manual).$(currentlang).ps $(manual).$(currentlang).dvi $(manual).$(currentlang).pdf: \
50 $(manual).$(currentlang).%: $(sources)
51 debiandoc2latex$* -l $(currentlang) $<
52 mv $(manual).$* $(manual).$(currentlang).$*
53
54 ps dvi pdf info: %: $(manual).$(currentlang).%
55
56 clean distclean:
57 rm -rf $(manual)*.$(currentlang).html
58 rm -f $(manual)*.{txt,ps,dvi,pdf,info*,aux,log,man,tex,toc,sasp*}
59 rm -f *~ .*~ core tsa*
60
61 .PHONY: all publish clean distclean validate

  ViewVC Help
Powered by ViewVC 1.1.5