~ubuntu-branches/ubuntu/intrepid/dblatex/intrepid

« 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-rkfacgap1tbemkr4
Tags: 0.1.9-2
* Enable file names containing white space to be handled.  Closes: #366721
* Standards-Version: 3.7.2 (no changes needed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 
13
13
HERE = $(shell pwd)
14
14
 
15
 
vpath %.xml $(SRCDIR)
 
15
vpath %.xml "$(SRCDIR)"
16
16
 
17
17
ifeq ($(TEXDRV),dvips)
18
18
 
19
19
%.pdf: %.ps FORCE
20
 
        ps2pdf -sPAPERSIZE=a4 $<
 
20
        ps2pdf -sPAPERSIZE=a4 "$<"
21
21
 
22
22
%.ps: %.dvi FORCE
23
 
        dvips -o $@ $<
 
23
        dvips -o "$@" "$<"
24
24
 
25
25
%.dvi: %.tex FORCE
26
26
        @echo "Compiling $< ..."
27
 
        @$(TEXRUN) $< "$(SRCDIR) $(XPATH)"
 
27
        @$(TEXRUN) --src "$(SRCDIR)" --xpath "$(XPATH)" "$<"
28
28
 
29
29
else
30
30
ifeq ($(TEXDRV),pdftex)
37
37
 
38
38
%.pdf: %.tex FORCE
39
39
        @echo "Compiling $< ..."
40
 
        @$(TEXRUN) $< "$(SRCDIR) $(XPATH)"
 
40
        @$(TEXRUN) --src "$(SRCDIR)" --xpath "$(XPATH)" "$<"
41
41
 
42
42
endif
43
43
endif
44
44
 
45
45
%.tex: %.rtex FORCE
46
 
        @$(TEXCLEAN) -b $(TEXDRV) -p $(SRCDIR) -f "$(FIG2DEV)" $< $@
 
46
        @$(TEXCLEAN) -b $(TEXDRV) -p "$(SRCDIR)" -f "$(FIG2DEV)" "$<" "$@"
47
47
 
48
 
%.rtex: %.lxml $(XMLFILE) FORCE
 
48
%.rtex: %.lxml FORCE
49
49
ifeq ($(XSLT),xt)
50
 
        java com.jclark.xsl.sax.Driver $< $(XSL) > $@
 
50
        java com.jclark.xsl.sax.Driver "$<" $(XSL) > "$@"
51
51
else
52
52
ifeq ($(XSLT),xsltproc)
53
53
        xsltproc --xinclude --catalogs --param listings.xml "'$(HERE)/$<'" \
54
 
                 $(XOPT) $(XSL) $(XMLFILE) > $@
 
54
                 $(XOPT) $(XSL) "$(XMLFILE)" > "$@"
55
55
endif
56
56
endif
57
57
 
58
 
%.lxml: $(XMLFILE)
 
58
%.lxml:
59
59
ifeq ($(XSLLST),)
60
60
        @echo "No external file support"
61
 
        echo "<listings/>" > $@
 
61
        echo "<listings/>" > "$@"
62
62
else
63
63
        xsltproc --param current.dir "'$(SRCDIR)'" \
64
 
                 $(XSLLST) $< > $@
 
64
                 $(XSLLST) "$(XMLFILE)" > "$@"
65
65
endif
66
66
 
67
67
FORCE: