26 lines
656 B
Makefile
26 lines
656 B
Makefile
|
.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
|