From 0e389c59bb061f8eb32b102e7073ff0eb1d934ee Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 14 Aug 2021 01:44:25 +0300 Subject: refactor: generalize view command --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5b657da..4ddf32e 100644 --- a/Makefile +++ b/Makefile @@ -4,10 +4,13 @@ OUTPUTS=$(patsubst src/%.png, out/%.png, $(patsubst src/%.jpg, out/%.png, $(SOUR SIZE=512x512 FUZZ=50% +VIEW_COMMAND=sxiv -t + + all: $(OUTPUTS) -open: all - sxiv -t out +view: all + $(VIEW_COMMAND) out out/%.png: src/%.* @mkdir -p out -- cgit v1.2.3