summaryrefslogtreecommitdiff
path: root/docs-xml/Makefile
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2009-08-08 08:02:52 +0300
committerAlexander Bokovoy <ab@samba.org>2009-08-08 08:02:52 +0300
commit217e3086c74eb0b46fab512b5887d9a5a5b7ee9a (patch)
treef891ba20a9e1282d3a6a74bec657c1a38ce69b3d /docs-xml/Makefile
parentd40537c92a9ad7535b90218f289c35f039d03b0c (diff)
downloadsamba-217e3086c74eb0b46fab512b5887d9a5a5b7ee9a.tar.gz
samba-217e3086c74eb0b46fab512b5887d9a5a5b7ee9a.tar.bz2
samba-217e3086c74eb0b46fab512b5887d9a5a5b7ee9a.zip
Pass absolute file paths to Inkscape when transforming .svg files
Some recent versions of Inkscape (0.47 or around) have bug when export file name is treated as relative against the directory of original .svg if it wasn't specified as an absolute path. Fix it by always using absolute paths during conversion.
Diffstat (limited to 'docs-xml/Makefile')
-rw-r--r--docs-xml/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs-xml/Makefile b/docs-xml/Makefile
index 717d0679fe..40a6c7b610 100644
--- a/docs-xml/Makefile
+++ b/docs-xml/Makefile
@@ -153,10 +153,10 @@ $(PSDIR)/%.ps: %/index.xml $(PSDIR) xslt/latex.xsl %-images-eps
$(DBLATEX) $(DBLATEX_OPTIONS) -I $*/images -t ps -o $@ $<
%.eps: %.svg
- $(INKSCAPE) -z -f $< --export-eps=$@
+ $(INKSCAPE) -z -f $(abspath $<) --export-eps=$(abspath $@)
%.png: %.svg
- $(INKSCAPE) -z -f $< --export-png=$@
+ $(INKSCAPE) -z -f $(abspath $<) --export-png=$(abspath $@)
%.eps: %.png
$(PNGTOPNM) $< | $(PNMTOPS) > $@