2020-06-17 19:58:05 +00:00
|
|
|
.DEFAULT_GOAL := all
|
|
|
|
|
|
|
|
JEKYLL_ENV ?= production
|
|
|
|
|
|
|
|
export
|
|
|
|
|
|
|
|
all: fa build serve
|
|
|
|
|
|
|
|
build:
|
|
|
|
bundle exec jekyll build --profile --trace
|
|
|
|
|
2020-10-28 23:41:26 +00:00
|
|
|
# La ubicación de serve va a un directorio temporal fuera del directorio
|
|
|
|
# actual para hacerlo compatible con jekyll-locales.
|
2020-06-17 19:58:05 +00:00
|
|
|
serve:
|
2020-10-28 23:41:26 +00:00
|
|
|
bundle exec jekyll serve --destination /tmp/_site
|
2020-06-17 19:58:05 +00:00
|
|
|
|
|
|
|
# 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
|