1.1.1
by Torsten Spindler
More useful comments in Makefile |
1 |
# This is an example Makefile for converting the docbook XML to
|
2 |
# PDF and HTML.
|
|
3 |
||
4 |
||
5 |
# This is quite a hack, a patch that integrates the call of the
|
|
6 |
# top level Makefile is welcome.
|
|
1
by Billy Cina
Initial release |
7 |
|
8 |
ifeq ($(CURDIR)x,x)
|
|
9 |
CURDIR = $(shell pwd) |
|
10 |
endif
|
|
11 |
||
87.2.6
by Torsten Spindler
Makefile and stylesheets updated for student guide and instructor notes |
12 |
BOOK = desktop-course-book |
13 |
SGSUFFIX = -studentguide |
|
86.2.5
by Torsten Spindler
Separating answers for student guide |
14 |
QUESTIONSUFFIX = -questions |
87.2.6
by Torsten Spindler
Makefile and stylesheets updated for student guide and instructor notes |
15 |
|
93
by Torsten Spindler
Renamed temporary files in Makefile, only generate TOC for book |
16 |
IGXSL = $(CURDIR)/lib/instructorguide.xsl |
17 |
SGXSL = $(CURDIR)/lib/studentguide.xsl |
|
18 |
||
112
by Torsten Spindler
Fix table in Introduction |
19 |
TEXSTYLE = -s $(CURDIR)/lib/training.sty |
20 |
#TEXSTYLE = -T $(CURDIR)/lib/training.sty
|
|
86.2.7
by Torsten Spindler
Updte to styles |
21 |
|
1
by Billy Cina
Initial release |
22 |
DIRTARGETS = $(addsuffix stamp,$(wildcard */)) |
23 |
HTMLTARGETS = $(addsuffix .html,$(basename $(wildcard *.xml))) |
|
24 |
PDFTARGETS = $(addsuffix .pdf,$(basename $(wildcard *.xml))) |
|
25 |
||
26 |
||
27 |
all: $(DIRTARGETS) $(HTMLTARGETS) $(PDFTARGETS) |
|
28 |
||
29 |
XSLTPROC = /usr/bin/xsltproc |
|
30 |
DBLATEX = /usr/bin/dblatex |
|
112
by Torsten Spindler
Fix table in Introduction |
31 |
DBLATEXOPTS = $(TEXSTYLE) -p $(CURDIR)/lib/dblatex.xsl -Ichapter1 -Ichapter3 -Ichapter4 -Ichapter5 -Ichapter6 -Ichapter7 -Ichapter8 -Ichapter9 -Ichapter10 -Ichapter11 |
92
by Torsten Spindler
Fixes and new stylesheet for instructor notes and answers, updated makefile |
32 |
XSL ?= $(CURDIR)/lib/html.xsl |
1
by Billy Cina
Initial release |
33 |
|
34 |
%/stamp: %/ |
|
35 |
@$(MAKE) CURDIR=$(CURDIR) XSL=$(XSL) -f $(CURDIR)/Makefile -C $< |
|
36 |
||
37 |
# If you need to specify a custom XSL here, dblatex accepts the -p switch
|
|
38 |
%.pdf: %.xml |
|
93
by Torsten Spindler
Renamed temporary files in Makefile, only generate TOC for book |
39 |
@$(XSLTPROC) --xinclude -o tmp-$@.xml $(CURDIR)/lib/instructorguide.xsl $< |
40 |
@$(DBLATEX) $(DBLATEXOPTS) -tpdf -o $@ tmp-$@.xml |
|
41 |
@rm -f tmp-$@.xml
|
|
1
by Billy Cina
Initial release |
42 |
|
43 |
%.html: %.xml $(XSL) |
|
93
by Torsten Spindler
Renamed temporary files in Makefile, only generate TOC for book |
44 |
@$(XSLTPROC) -o - $(IGXSL) $< | $(XSLTPROC) -o $@ $(XSL) - |
1
by Billy Cina
Initial release |
45 |
|
76
by Torsten Spindler
Use make book to create coursebook |
46 |
book: |
93
by Torsten Spindler
Renamed temporary files in Makefile, only generate TOC for book |
47 |
@$(XSLTPROC) --xinclude -o tmp-ig.xml $(CURDIR)/lib/instructorguide.xsl $(BOOK).xml |
48 |
@$(DBLATEX) -p$(CURDIR)/lib/dblatex.xsl $(DBLATEXOPTS) -tpdf -o $(BOOK).pdf tmp-ig.xml |
|
49 |
@rm -f tmp-ig.xml |
|
76
by Torsten Spindler
Use make book to create coursebook |
50 |
|
87.2.3
by Torsten Spindler
Added new stylesheets, corrected lesson 1 |
51 |
booksg: |
93
by Torsten Spindler
Renamed temporary files in Makefile, only generate TOC for book |
52 |
@$(XSLTPROC) --xinclude -o tmp-sg.xml $(CURDIR)/lib/studentguide.xsl $(BOOK).xml |
53 |
@$(DBLATEX) -p$(CURDIR)/lib/dblatex.xsl $(DBLATEXOPTS) -tpdf -o $(BOOK)$(SGSUFFIX).pdf tmp-sg.xml |
|
54 |
@rm -f tmp-sg.xml |
|
87.2.3
by Torsten Spindler
Added new stylesheets, corrected lesson 1 |
55 |
|
86.2.5
by Torsten Spindler
Separating answers for student guide |
56 |
questions: |
57 |
@$(XSLTPROC) --xinclude -o tmp-questions.xml $(CURDIR)/lib/answersheet.xsl $(BOOK).xml |
|
58 |
@$(XSLTPROC) --xinclude -o tmp-answers.xml $(CURDIR)/lib/questions.xsl tmp-questions.xml |
|
59 |
@$(DBLATEX) -p$(CURDIR)/lib/dblatex.xsl $(DBLATEXOPS) -tpdf -o $(BOOK)$(QUESTIONSUFFIX).pdf tmp-answers.xml |
|
112.1.7
by Torsten Spindler
remove make questions artefacts |
60 |
@rm -f tmp-answers.xml tmp-questions.xml |
86.2.5
by Torsten Spindler
Separating answers for student guide |
61 |
|
1
by Billy Cina
Initial release |
62 |
clean: |
93
by Torsten Spindler
Renamed temporary files in Makefile, only generate TOC for book |
63 |
@rm -f ig.xml sg.xml *.html *.pdf tmp-*.xml */tmp-*.xml */*.html */*.pdf |
1
by Billy Cina
Initial release |
64 |
|
65 |
#.PHONY: $(DIRTARGETS)
|