Makefile
This commit is contained in:
parent
ed481d5d26
commit
5d3be245a3
1 changed files with 25 additions and 0 deletions
25
Makefile
Normal file
25
Makefile
Normal 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
|
Loading…
Reference in a new issue