1. Yuya Nishihara
  2. mercurial-quickref-cards-ja

Commits

Yuya Nishihara  committed 4abc8b7

Added Makefile to export svg images.

  • Participants
  • Parent commits 537e90b
  • Branches default

Comments (0)

Files changed (2)

File .hgignore

View file
+-\d+dpi\.png$
+\.pdf$
+-plain\.svg$

File ivy_fr/Makefile

View file
+OBJS := Mercurial-QuickStart-v1.0-ja-120dpi.png Mercurial-QuickStart-v1.0-ja-300dpi.png \
+	Mercurial-QuickStart-v1.0-ja.pdf Mercurial-QuickStart-v1.0-ja-plain.svg
+
+all: $(OBJS)
+
+%-120dpi.png: %.svg
+	inkscape --export-png="$@" --export-dpi=120 --export-area-canvas "$<"
+
+%-300dpi.png: %.svg
+	inkscape --export-png="$@" --export-dpi=300 --export-area-canvas "$<"
+
+%.pdf: %.svg
+	inkscape --export-pdf="$@" --export-embed-fonts --export-area-canvas "$<"
+
+%-plain.svg: %.svg
+	inkscape --export-plain-svg="$@" --export-text-to-path --export-area-canvas "$<"
+
+
+clean:
+	-rm $(OBJS)
+
+
+.PHONY: all clean