1
0
Fork 0
yummy.cricket/Makefile

30 lines
633 B
Makefile

FONTS = $(shell find fonts -type f)
CSS = style.css
PAGES = index.html
IMAGES = mlem.gif icon.png
BUILDDIR ?= _build
TMPDIR ?= _tmp
all: build
build: $(patsubst %,$(BUILDDIR)/%,$(FONTS) $(CSS) $(PAGES) $(IMAGES))
$(BUILDDIR)/%: %
@echo $*
@mkdir -p $(dir $@)
@cp $< $@
$(BUILDDIR)/%.gif: %_bg.gif
@echo $*.gif
@mkdir -p $(dir $(BUILDDIR)/%* $(TMPDIR)/%*)
@gifsicle -U $*_bg.gif -o $(TMPDIR)/$*_bg_u.gif
@convert -transparent '#ff9bc7' $(TMPDIR)/$*_bg_u.gif $(TMPDIR)/$*_t.gif
@gifsicle --disposal=previous $(TMPDIR)/$*_t.gif -o $(BUILDDIR)/$*.gif
clean:
$(RM) -r $(TMPDIR) $(BUILDDIR)
.PHONY: clean all build