~ubuntu-branches/ubuntu/lucid/dblatex/lucid

« back to all changes in this revision

Viewing changes to scripts/make.build

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Hoenen
  • Date: 2006-05-15 19:59:06 UTC
  • Revision ID: james.westby@ubuntu.com-20060515195906-jg9x08tsfbi35m2x
Tags: upstream-0.1.9
ImportĀ upstreamĀ versionĀ 0.1.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Core building rules and dependencies to produce DVI/PostScript/PDF output
 
3
#
 
4
XSLT = xsltproc
 
5
XOPT = 
 
6
XSL = ../xsl/latex_book.xsl
 
7
XSLLST = ../xsl/common/mklistings.xsl
 
8
TEXRUN = ../../latex/scripts/runlatex
 
9
TEXDRV = dvips
 
10
XPATH = 
 
11
FIG2DEV = 
 
12
 
 
13
HERE = $(shell pwd)
 
14
 
 
15
vpath %.xml $(SRCDIR)
 
16
 
 
17
ifeq ($(TEXDRV),dvips)
 
18
 
 
19
%.pdf: %.ps FORCE
 
20
        ps2pdf -sPAPERSIZE=a4 $<
 
21
 
 
22
%.ps: %.dvi FORCE
 
23
        dvips -o $@ $<
 
24
 
 
25
%.dvi: %.tex FORCE
 
26
        @echo "Compiling $< ..."
 
27
        @$(TEXRUN) $< "$(SRCDIR) $(XPATH)"
 
28
 
 
29
else
 
30
ifeq ($(TEXDRV),pdftex)
 
31
 
 
32
%.ps: FORCE
 
33
        @echo "$(TEXDRV): Invalid Driver"
 
34
 
 
35
%.dvi: FORCE
 
36
        @echo "$(TEXDRV): Invalid Driver"
 
37
 
 
38
%.pdf: %.tex FORCE
 
39
        @echo "Compiling $< ..."
 
40
        @$(TEXRUN) $< "$(SRCDIR) $(XPATH)"
 
41
 
 
42
endif
 
43
endif
 
44
 
 
45
%.tex: %.rtex FORCE
 
46
        @$(TEXCLEAN) -b $(TEXDRV) -p $(SRCDIR) -f "$(FIG2DEV)" $< $@
 
47
 
 
48
%.rtex: %.lxml $(XMLFILE) FORCE
 
49
ifeq ($(XSLT),xt)
 
50
        java com.jclark.xsl.sax.Driver $< $(XSL) > $@
 
51
else
 
52
ifeq ($(XSLT),xsltproc)
 
53
        xsltproc --xinclude --catalogs --param listings.xml "'$(HERE)/$<'" \
 
54
                 $(XOPT) $(XSL) $(XMLFILE) > $@
 
55
endif
 
56
endif
 
57
 
 
58
%.lxml: $(XMLFILE)
 
59
ifeq ($(XSLLST),)
 
60
        @echo "No external file support"
 
61
        echo "<listings/>" > $@
 
62
else
 
63
        xsltproc --param current.dir "'$(SRCDIR)'" \
 
64
                 $(XSLLST) $< > $@
 
65
endif
 
66
 
 
67
FORCE: