aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 5b657da6782a861524031cf95189cf8d5f106a7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
SOURCES=$(wildcard src/*)
OUTPUTS=$(patsubst src/%.png, out/%.png, $(patsubst src/%.jpg, out/%.png, $(SOURCES)))

SIZE=512x512
FUZZ=50%

all: $(OUTPUTS)

open: all
	sxiv -t out

out/%.png: src/%.*
	@mkdir -p out
	convert $< -fuzz $(FUZZ) -fill none -floodfill +0+0 white -resize $(SIZE)\> $@

clean:
	rm -rf out