~ricardo-cropalato/ubuntu-desktop-course/ubuntu-desktop-course-pt-br-ricardo-cropalato

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Torsten Spindler
  • Date: 2007-12-04 18:51:14 UTC
  • mfrom: (86.2.15 udcb-tetet)
  • Revision ID: torsten@canonical.com-20071204185114-k30pdbublzqac6p0
Merged use of new stylesheets, latex and xsl

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
BOOK = desktop-course-book
13
13
SGSUFFIX = -studentguide
 
14
QUESTIONSUFFIX = -questions
14
15
 
15
16
IGXSL = $(CURDIR)/lib/instructorguide.xsl
16
17
SGXSL = $(CURDIR)/lib/studentguide.xsl
17
18
 
 
19
TEXSTYLE = $(CURDIR)/lib/training.sty
 
20
 
18
21
DIRTARGETS = $(addsuffix stamp,$(wildcard */))
19
22
HTMLTARGETS = $(addsuffix .html,$(basename $(wildcard *.xml))) 
20
23
PDFTARGETS = $(addsuffix .pdf,$(basename $(wildcard *.xml))) 
24
27
 
25
28
XSLTPROC = /usr/bin/xsltproc
26
29
DBLATEX = /usr/bin/dblatex
27
 
DBLATEXOPTS = -p $(CURDIR)/lib/dblatex.xsl -Ichapter1 -Ichapter3 -Ichapter4 -Ichapter5 -Ichapter6 -Ichapter7 -Ichapter8 -Ichapter9 -Ichapter10 -Ichapter11 
 
30
DBLATEXOPTS = -s $(TEXSTYLE) -p $(CURDIR)/lib/dblatex.xsl -Ichapter1 -Ichapter3 -Ichapter4 -Ichapter5 -Ichapter6 -Ichapter7 -Ichapter8 -Ichapter9 -Ichapter10 -Ichapter11 
28
31
XSL ?= $(CURDIR)/lib/html.xsl
29
32
 
30
33
%/stamp: %/
49
52
        @$(DBLATEX) -p$(CURDIR)/lib/dblatex.xsl $(DBLATEXOPTS) -tpdf -o $(BOOK)$(SGSUFFIX).pdf tmp-sg.xml
50
53
        @rm -f tmp-sg.xml
51
54
 
 
55
questions:
 
56
        @$(XSLTPROC) --xinclude -o tmp-questions.xml $(CURDIR)/lib/answersheet.xsl $(BOOK).xml 
 
57
        @$(XSLTPROC) --xinclude -o tmp-answers.xml $(CURDIR)/lib/questions.xsl tmp-questions.xml
 
58
        @$(DBLATEX) -p$(CURDIR)/lib/dblatex.xsl $(DBLATEXOPS) -tpdf -o $(BOOK)$(QUESTIONSUFFIX).pdf tmp-answers.xml
 
59
 
52
60
clean:
53
61
         @rm -f ig.xml sg.xml *.html *.pdf tmp-*.xml */tmp-*.xml */*.html */*.pdf
54
62