Skip to content

Instantly share code, notes, and snippets.

@astronasutarou
Created January 4, 2014 08:43
Show Gist options
  • Save astronasutarou/8253182 to your computer and use it in GitHub Desktop.
Save astronasutarou/8253182 to your computer and use it in GitHub Desktop.
フォルダ内に存在する eps ファイルをすべて横幅 800px の png ファイルへと変換する Makefile
SOURCE := $(wildcard *.eps)
TARGET := $(patsubst %.eps,%.png,$(SOURCE))
.SUFFIXES: .png .eps
all: $(TARGET)
%.png: %.eps
gs -dBATCH -sDEVICE=png16m -dNOPAUSE -r1200 -dEPSCrop -sOutputFile=$@ -f $<
mogrify -geometry 800x $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment