From 1d4185f92dbd2f6d8a66609ab9a7cafc7ca8a4c4 Mon Sep 17 00:00:00 2001 From: Rasmus Andersson Date: Mon, 11 Sep 2017 22:42:54 -0700 Subject: makefile: copy_docs_fonts target --- Makefile | 22 ++++++++++++++-------- 1 file 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 -- cgit v1.2.3