summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2017-09-12 08:42:54 +0300
committerRasmus Andersson <rasmus@notion.se>2017-09-12 08:42:54 +0300
commit1d4185f92dbd2f6d8a66609ab9a7cafc7ca8a4c4 (patch)
tree7e319862728df0ea71b9f5a057e7bac7c019e1a1 /Makefile
parent08364ae2bf570a41e482be6085ef5064d33d1ac9 (diff)
downloadinter-1d4185f92dbd2f6d8a66609ab9a7cafc7ca8a4c4.tar.xz
makefile: copy_docs_fonts target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 14 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 520303bf7..78a580f3c 100644
--- a/Makefile
+++ b/Makefile
@@ -96,20 +96,26 @@ pre_dist:
then echo "${ZIP_FILE_DIST} already exists. Bump version or remove the zip file to continue." >&2; \
exit 1; \
fi
-dist: pre_dist zip_dist glyphinfo
- rm -rf docs/font-files
- mkdir docs/font-files
- cp -a build/dist/*.woff build/dist/*.woff2 docs/font-files/
+dist: pre_dist zip_dist glyphinfo copy_docs_fonts
misc/versionize-css.py
@echo "——————————————————————————————————————————————————————————————————"
@echo ""
- @echo "Next step:"
- @echo " Create new release with ${ZIP_FILE_DIST} at"
+ @echo "Next steps:"
+ @echo ""
+ @echo "1) Commit & push changes"
+ @echo ""
+ @echo "2) Create new release with ${ZIP_FILE_DIST} at"
+ @echo " https://github.com/rsms/interface/releases/new?tag=v${VERSION}"
@echo ""
- @echo " https://github.com/rsms/interface/releases/new?tag=v${VERSION}"
+ @echo "3) Bump version in src/fontbuild.cfg and commit"
@echo ""
@echo "——————————————————————————————————————————————————————————————————"
+copy_docs_fonts:
+ rm -rf docs/font-files
+ mkdir docs/font-files
+ cp -a build/dist/*.woff build/dist/*.woff2 docs/font-files/
+
install_ttf: all_ttf
@echo "Installing TTF files locally at ~/Library/Fonts/Interface"
rm -rf ~/Library/Fonts/Interface
@@ -147,4 +153,4 @@ _local/UnicodeData.txt:
clean:
rm -vrf build/tmp/* build/dist/Interface-*.*
-.PHONY: all web clean install install_otf install_ttf deploy zip zip_dist pre_dist dist glyphinfo
+.PHONY: all web clean install install_otf install_ttf deploy zip zip_dist pre_dist dist glyphinfo copy_docs_fonts