Created
January 4, 2014 08:43
-
-
Save astronasutarou/8253182 to your computer and use it in GitHub Desktop.
フォルダ内に存在する eps ファイルをすべて横幅 800px の png ファイルへと変換する Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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