diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5b657da --- /dev/null +++ b/Makefile @@ -0,0 +1,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 |