diff options
author | Alexander Bokovoy <ab@samba.org> | 2008-04-14 15:39:30 +0000 |
---|---|---|
committer | Gerald W. Carter <jerry@samba.org> | 2008-04-23 08:47:46 -0500 |
commit | 7ece10fa2346261c52f54f643fdc7fc77bf57a73 (patch) | |
tree | f1bce5a7bbb04bcf02502e0844bc51ec8a0fdcbe /docs/Makefile | |
parent | 338aa2568bcae115389e38ec5b25971e7c2503e6 (diff) | |
download | samba-7ece10fa2346261c52f54f643fdc7fc77bf57a73.tar.gz samba-7ece10fa2346261c52f54f643fdc7fc77bf57a73.tar.bz2 samba-7ece10fa2346261c52f54f643fdc7fc77bf57a73.zip |
Switch to SVG and Inkscape to generate pictures instead of Dia.
This was discussed months ago and with Inkscape getting better and more clear in SVG processing
it is now a preffered tool to create and process vector images.
(This used to be commit 2575ceec2a817156832ce84e80a97923f10ecbe9)
Diffstat (limited to 'docs/Makefile')
-rw-r--r-- | docs/Makefile | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/docs/Makefile b/docs/Makefile index 56998ab866..1e4121053d 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -56,9 +56,9 @@ release: manpages3 htmlman3 html pdf clean: @echo "Cleaning up..." rm -rf $(OUTPUTDIR)/* $(DOCBOOKDIR) - rm -f $(patsubst %.dia,%.png,$(foreach DOC,$(MAIN_DOCS),$($(DOC)-images-latex-dia))) \ - $(patsubst %.dia,%.pdf,$(foreach DOC,$(MAIN_DOCS),$($(DOC)-images-latex-dia))) \ - $(patsubst %.dia,%.eps,$(foreach DOC,$(MAIN_DOCS),$($(DOC)-images-latex-dia))) + rm -f $(patsubst %.svg,%.png,$(foreach DOC,$(MAIN_DOCS),$($(DOC)-images-latex-dia))) \ + $(patsubst %.svg,%.pdf,$(foreach DOC,$(MAIN_DOCS),$($(DOC)-images-latex-svg))) \ + $(patsubst %.svg,%.eps,$(foreach DOC,$(MAIN_DOCS),$($(DOC)-images-latex-svg))) rm -f *.xml *.d *.tpt *.tex *.loc *.toc *.lof *.glo *.idx *.aux rm -f *-images-html* rm -f *-images-latex-* latexfigures @@ -161,10 +161,10 @@ $(PDFDIR)/%.pdf: %.pdf --stringparam txtbasedir "$(TXTDIR)/$*/" \ --stringparam target "$*" \ -o $@ xslt/generate-dependencies.xsl $< - @echo "$*-images-latex-dia = \$$(wildcard \$$(addsuffix .dia, \$$($*-images-latex)))" >> $@ + @echo "$*-images-latex-svg = \$$(wildcard \$$(addsuffix .svg, \$$($*-images-latex)))" >> $@ @echo "$*-images-latex-eps: \$$(addsuffix .eps, \$$($*-images-latex))" >> $@ - @echo "$*-images-latex-pdf: \$$(patsubst %.dia, %.pdf, \$$($*-images-latex-dia))" >> $@ - @echo "$*-images-latex-png: \$$(filter-out \$$(patsubst %.dia,%.png,\$$($*-images-latex-dia)), \$$(addsuffix .png, \$$($*-images-latex)))" >> $@ + @echo "$*-images-latex-pdf: \$$(patsubst %.svg, %.pdf, \$$($*-images-latex-svg))" >> $@ + @echo "$*-images-latex-png: \$$(filter-out \$$(patsubst %.svg,%.png,\$$($*-images-latex-svg)), \$$(addsuffix .png, \$$($*-images-latex)))" >> $@ @echo >> $@ @echo "\$$(HTMLDIR)/%: $*/%" >> $@ @@ -192,6 +192,9 @@ endif # Adobe PDF files %.pdf: %.tex %.ind latexfigures %-images-latex-png %-images-latex-pdf -$(PDFLATEX) $< + -$(PDFLATEX) $< + -$(PDFLATEX) $< + -$(PDFLATEX) $< $(THUMBPDF) --quiet $*.pdf -$(PDFLATEX) $< @@ -203,11 +206,14 @@ $(DVIDIR)/%.dvi: %.dvi %.dvi: %.tex %.idx %-images-latex-eps -$(LATEX) $< -%.eps: %.dia - $(DIA) -t eps-builtin -e $@ $< +%.eps: %.svg + $(INKSCAPE) -z -f $< --export-eps=$@ + +%.png: %.svg + $(INKSCAPE) -z -f $< --export-png=$@ -%.png: %.dia - $(DIA) -e $@ $< +#%.pdf: %.svg +# $(INKSCAPE) -z -f $< --export-pdf=$@ %.pdf: %.eps $(EPSTOPDF) $< |