~canonical-training/ubuntu-desktop-course/ubuntu-desktop-course-7.10

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Torsten Spindler
  • Date: 2008-05-06 13:47:55 UTC
  • Revision ID: torsten@canonical.com-20080506134755-k9905t9dqk3w66i2
Enable PDF size reduction with ps2pdf conversion

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
        @$(XSLTPROC) --xinclude --stringparam profile.userlevel student -o tmp-ig.xml $(CURDIR)/lib/instructorguide.xsl $(BOOK).xml
47
47
        @$(DBLATEX) -p$(CURDIR)/lib/dblatex.xsl $(DBLATEXOPTS) -tpdf -o $(BOOK).pdf tmp-ig.xml
48
48
        @rm -f tmp-ig.xml
 
49
        @ps2pdf -dUseFlateCompression=true $(BOOK).pdf
 
50
        @mv $(BOOK).pdf.pdf $(BOOK).pdf
49
51
 
50
52
booksg: 
51
53
        @$(XSLTPROC) --xinclude --stringparam profile.userlevel student -o tmp-sg.xml $(CURDIR)/lib/studentguide.xsl $(BOOK).xml
52
54
        @$(DBLATEX) -p$(CURDIR)/lib/dblatex.xsl $(DBLATEXOPTS) -tpdf -o $(BOOK)$(SGSUFFIX).pdf tmp-sg.xml
53
55
        @rm -f tmp-sg.xml
 
56
        @ps2pdf -dUseFlateCompression=true $(BOOK)$(SGSUFFIX).pdf
 
57
        @mv $(BOOK)$(SGSUFFIX).pdf.pdf $(BOOK)$(SGSUFFIX).pdf
54
58
 
55
59
questions:
56
60
        @$(XSLTPROC) --xinclude -o tmp-questions.xml $(CURDIR)/lib/answersheet.xsl $(BOOK).xml 
57
61
        @$(XSLTPROC) --xinclude -o tmp-answers.xml $(CURDIR)/lib/questions.xsl tmp-questions.xml
58
62
        @$(DBLATEX) -p$(CURDIR)/lib/dblatex.xsl $(DBLATEXOPS) -tpdf -o $(BOOK)$(QUESTIONSUFFIX).pdf tmp-answers.xml
59
63
        @rm -f tmp-answers.xml tmp-questions.xml
 
64
        @ps2pdf -dUseFlateCompression=true $(BOOK)$(QUESTIONSUFFIX).pdf
 
65
        @mv $(BOOK)$(QUESTIONSUFFIX).pdf.pdf $(BOOK)$(QUESTIONSUFFIX).pdf
60
66
 
61
67
clean:
62
 
         @rm -f ig.xml sg.xml *.html *.pdf tmp-*.xml */tmp-*.xml */*.html */*.pdf
 
68
        @rm -f ig.xml sg.xml *.html *.pdf tmp-*.xml */tmp-*.xml */*.html */*.pdf
63
69
 
64
70
#.PHONY: $(DIRTARGETS)