This commit is contained in:
f 2020-06-17 16:58:05 -03:00
parent ed481d5d26
commit 5d3be245a3

25
Makefile Normal file
View file

@ -0,0 +1,25 @@
.DEFAULT_GOAL := all
JEKYLL_ENV ?= production
export
all: fa build serve
build:
bundle exec jekyll build --profile --trace
serve:
darkhttpd _site
# Tomar los códigos de los íconos de este archivo y copiarlos a fa.txt
# node_modules/font-awesome/scss/_variables.scss
assets/fonts/forkawesome-webfont.woff2: fa.txt
which glyphhanger || npm i -g glyphhanger
glyphhanger \
--subset=node_modules/fork-awesome/fonts/forkawesome-webfont.ttf \
--formats=woff2 \
--whitelist=$(shell grep -v "^#" $< | sed "s/^/U+/" | tr "\n" "," )
mv node_modules/fork-awesome/fonts/forkawesome-webfont-subset.woff2 $@
fa: assets/fonts/forkawesome-webfont.woff2