mocodo: replace inkscape with rsvg-convert + ghostscript
This commit is contained in:
parent
0659580291
commit
6c23344b50
1 changed files with 7 additions and 10 deletions
17
mocodo.mk
17
mocodo.mk
|
@ -14,6 +14,8 @@ MOCODO_MLD_FILES=$(shell find $(IMAGES_DIR) \( -name '*.mld' ! -name '_*' \)) $(
|
||||||
MOCODO_MLD_SVG=$(patsubst $(IMAGES_DIR)/%.mld,$(BUILD_IMAGES_DIR)/%.mld.svg,$(MOCODO_MLD_FILES))
|
MOCODO_MLD_SVG=$(patsubst $(IMAGES_DIR)/%.mld,$(BUILD_IMAGES_DIR)/%.mld.svg,$(MOCODO_MLD_FILES))
|
||||||
MOCODO_MLD_PDF=$(patsubst $(IMAGES_DIR)/%.mld,$(BUILD_IMAGES_DIR)/%.mld.pdf,$(MOCODO_MLD_FILES))
|
MOCODO_MLD_PDF=$(patsubst $(IMAGES_DIR)/%.mld,$(BUILD_IMAGES_DIR)/%.mld.pdf,$(MOCODO_MLD_FILES))
|
||||||
|
|
||||||
|
MOCODO_APT_PACKAGES=ghostscript librsvg2-bin
|
||||||
|
|
||||||
%.mcd.mld: %.mcd
|
%.mcd.mld: %.mcd
|
||||||
tmp=$$(mktemp -d) \
|
tmp=$$(mktemp -d) \
|
||||||
&& pipenv run mocodo \
|
&& pipenv run mocodo \
|
||||||
|
@ -49,18 +51,13 @@ MOCODO_MLD_PDF=$(patsubst $(IMAGES_DIR)/%.mld,$(BUILD_IMAGES_DIR)/%.mld.pdf,$(MO
|
||||||
&& touch --reference $< $@
|
&& touch --reference $< $@
|
||||||
|
|
||||||
%.mld.pdf: %.mld.svg
|
%.mld.pdf: %.mld.svg
|
||||||
inkscape \
|
# rsvg-convert -f pdf $< > $@
|
||||||
--export-type=pdf \
|
rsvg-convert -f ps $< | gs -sDEVICE=pdfwrite -sOutputFile=$@ -f -
|
||||||
--export-overwrite \
|
|
||||||
--export-filename $@ \
|
|
||||||
$<
|
|
||||||
|
|
||||||
%.mcd.pdf: %.mcd.svg
|
%.mcd.pdf: %.mcd.svg
|
||||||
inkscape \
|
# rsvg-convert -f pdf $< > $@
|
||||||
--export-type=pdf \
|
rsvg-convert -f ps $< | gs -sDEVICE=pdfwrite -sOutputFile=$@ -f -
|
||||||
--export-overwrite \
|
|
||||||
--export-filename $@ \
|
|
||||||
$<
|
|
||||||
|
|
||||||
mocodo-mcd-mld: $(MOCODO_MCD_MLD)
|
mocodo-mcd-mld: $(MOCODO_MCD_MLD)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue