mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-05 07:25:45 -04:00
manual: Convert cover SVG to a template file
We generate the previous SVG by doing sed substitutions to insert the front cover and spine titles, plus the rear cover text. A follow-up commit will generate the French and Spanish covers as well.
This commit is contained in:
parent
5b89315bcc
commit
868e9fa6c8
3 changed files with 25 additions and 35 deletions
|
@ -11,7 +11,8 @@
|
|||
ASCIIDOCTOR_FLAGS = -a pdf-page-size=A5
|
||||
MANUAL_ADOC_FILES=$(wildcard freedoom-manual-??.adoc)
|
||||
MANUAL_PDF_FILES=$(subst .adoc,.pdf,$(MANUAL_ADOC_FILES))
|
||||
COVER_PDF_FILES=cover.pdf
|
||||
COVER_PDF_FILES=cover-en.pdf
|
||||
COVER_SVG_FILES=$(patsubst %.pdf,cover/%.svg,$(COVER_PDF_FILES))
|
||||
|
||||
all: $(MANUAL_PDF_FILES)
|
||||
|
||||
|
@ -24,8 +25,11 @@ covers: $(COVER_PDF_FILES)
|
|||
freedoom-manual-%.pdf: freedoom-manual-%.adoc
|
||||
-asciidoctor-pdf $(ASCIIDOCTOR_FLAGS) $< -o $@
|
||||
|
||||
cover.pdf: cover/cover.svg cover/serpentipede.png cover/minigunner.png
|
||||
cover/cover-%.svg: cover/cover-%.sed cover/template.svg
|
||||
sed -f $< < cover/template.svg > $@
|
||||
|
||||
cover-%.pdf: cover/cover-%.svg cover/serpentipede.png cover/minigunner.png
|
||||
inkscape -o $@ $<
|
||||
|
||||
clean:
|
||||
$(RM) $(MANUAL_PDF_FILES) $(COVER_PDF_FILES)
|
||||
$(RM) $(MANUAL_PDF_FILES) $(COVER_PDF_FILES) $(COVER_SVG_FILES)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue