# This is free and unencumbered software released into the public # domain. To the extent possible under law, the author of this file # waives all copyright and related or neighboring rights to it. .DELETE_ON_ERROR: BUILDDIR ?= build/ PNGCRUSHSTAMPDIR ?= $(BUILDDIR)/stamp pngcrush-stampify = $(patsubst %.png,$(PNGCRUSHSTAMPDIR)/%.png.crushed,$1) PNGCRUSH ?= pngcrush PNGCRUSHFLAGS ?= -brute -blacken -reduce -q CRUSH.png ?= $(PNGCRUSH) $(PNGCRUSHFLAGS) $(PNGCRUSHSTAMPDIR)/%.png.crushed: %.png $(CRUSH.png) -ow $< mkdir -p $(@D) touch $@