remove inkscape stuff since im just using the svgs directly
This commit is contained in:
parent
5a1181ec76
commit
9eddfe84c5
1 changed files with 1 additions and 15 deletions
16
Makefile
16
Makefile
|
@ -16,8 +16,7 @@ SCRIPTS := $(wildcard script/*.js)
|
||||||
|
|
||||||
STYLES := $(wildcard style/*.css)
|
STYLES := $(wildcard style/*.css)
|
||||||
STYLESVGS = $(wildcard style/*.svg)
|
STYLESVGS = $(wildcard style/*.svg)
|
||||||
STYLEPNGS = $(wildcard style/*.png) \
|
STYLEPNGS = $(wildcard style/*.png)
|
||||||
$(STYLESVGS:.svg=.png) $(STYLESVGS:.svg=_small.png)
|
|
||||||
|
|
||||||
FONTS := $(shell find fonts \
|
FONTS := $(shell find fonts \
|
||||||
-iname '*.eot' -or -iname '*.svg' -or \
|
-iname '*.eot' -or -iname '*.svg' -or \
|
||||||
|
@ -37,19 +36,6 @@ $(BUILDDIR)/index.html: $(DATADIR)/index.yaml $(MAKEPAGES)
|
||||||
$(MAKEPAGES) $(MPFLAGS) index $< -o $@
|
$(MAKEPAGES) $(MPFLAGS) index $< -o $@
|
||||||
|
|
||||||
|
|
||||||
define inkscape =
|
|
||||||
echo "[svg] "$@
|
|
||||||
mkdir -p $(dir $@)
|
|
||||||
inkscape $< -e $@ -w $(1) >/dev/null
|
|
||||||
endef
|
|
||||||
|
|
||||||
$(TMPDIR)/%.png: %.svg
|
|
||||||
$(call inkscape,32)
|
|
||||||
|
|
||||||
$(TMPDIR)/%_small.png: %.svg
|
|
||||||
$(call inkscape,16)
|
|
||||||
|
|
||||||
|
|
||||||
$(BUILDDIR)/%: %
|
$(BUILDDIR)/%: %
|
||||||
echo "[copy] "$@
|
echo "[copy] "$@
|
||||||
mkdir -p $(dir $@)
|
mkdir -p $(dir $@)
|
||||||
|
|
Loading…
Reference in a new issue