Fix Makefile to put site in _build
This commit is contained in:
parent
cd605e3d06
commit
6ca36d9578
1 changed files with 19 additions and 5 deletions
24
Makefile
24
Makefile
|
@ -1,9 +1,23 @@
|
||||||
mlem.gif: mlem_bg.gif
|
FONTS = $(shell find fonts -type f)
|
||||||
gifsicle -U mlem_bg.gif -o mlem_bg_u.gif
|
CSS = style.css
|
||||||
convert -transparent '#ff9bc7' mlem_bg_u.gif mlem_t.gif
|
PAGES = index.html
|
||||||
gifsicle --disposal=previous mlem_t.gif -o mlem.gif
|
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
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) mlem_bg_u.gif mlem_t.gif mlem.gif
|
$(RM) -r _tmp _build
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue