2023-06-17 16:32:12 +02:00

19 lines
444 B
Makefile

SRCDIR:= img
DSTDIR:= build
SOURCES := $(shell find ${SRCDIR} -type f -print)
FILES := $(patsubst $(SRCDIR)/%,$(DSTDIR)/%,$(SOURCES))
all: $(FILES)
palette.out: palette.in
node palette-gen.js < palette.in > palette.out
builddir:
@mkdir -p build
build/%: img/% builddir palette.out
repalette $< $@ -p $$(cat palette.out) --dither $(DITHER)
clean:
@rm -rf palette.in palette.out buildsha256-SDBYfjcax0XxVZcDRe5kCcPUOWaserg7v+wX747TwF8=