yummy.cricket/Makefile

24 lines
502 B
Makefile
Raw Normal View History

2020-06-30 10:25:01 -04:00
FONTS = $(shell find fonts -type f)
CSS = style.css
PAGES = index.html
IMAGES = mlem.gif
all: $(patsubst %,_build/%,$(FONTS) $(CSS) $(PAGES) $(IMAGES))
_build/%: %
@echo $*
@mkdir -p $(dir $@)
@cp $< $@
_build/%.gif: %_bg.gif
@echo $*.gif
@mkdir -p $(dir _build/%* _tmp/%*)
@gifsicle -U $*_bg.gif -o _tmp/$*_bg_u.gif
@convert -transparent '#ff9bc7' _tmp/$*_bg_u.gif _tmp/$*_t.gif
@gifsicle --disposal=previous _tmp/$*_t.gif -o _build/$*.gif
2020-06-28 20:21:02 -04:00
clean:
2020-06-30 10:25:01 -04:00
$(RM) -r _tmp _build
2020-06-28 20:21:02 -04:00
.PHONY: clean