diff options
author | Roozbeh Pournader <roozbeh@google.com> | 2014-12-01 13:36:03 -0800 |
---|---|---|
committer | James Godfrey-Kittle <jamesgk@google.com> | 2015-04-16 12:16:23 -0700 |
commit | 6ca0d935997f3a1f1bd53169a6b2f10ab4ae75d3 (patch) | |
tree | 485ce7f391971627cf08257f77b783fa8bb1afb4 /Makefile | |
parent | 6f8d5ea14c2d9fe8916bfd85c67fbf254b5b78da (diff) |
Add targets and scripts for web fonts.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 19 insertions, 4 deletions
@@ -33,16 +33,16 @@ crunch: for source in ../../out/RobotoTTF/*.ttf ../../out/RobotoCondensedTTF/*.ttf; do \ python fontcrunch.py gen $$source; \ done && \ - $(MAKE) -j24 && \ + $(MAKE) -j8 && \ for source in ../../out/RobotoTTF/*.ttf ../../out/RobotoCondensedTTF/*.ttf; do \ python fontcrunch.py pack $$source ../../out/crunched/$$(basename $$source) >/dev/null; \ - done + done android: mkdir -p out/android for source in out/crunched/*.ttf; do \ - touched=$$(mktemp); \ - subsetted=$$(mktemp); \ + touched=$$(mktemp); \ + subsetted=$$(mktemp); \ final=out/android/$$(basename $$source); \ python scripts/touchup_for_android.py $$source $$touched && \ python $$HOME/noto/nototools/subset.py $$touched $$subsetted && \ @@ -54,6 +54,18 @@ glass: out/android/Roboto-Thin.ttf mkdir -p out/glass python scripts/touchup_for_glass.py $< out/glass/Roboto-Thin.ttf +web: + mkdir -p out/web + for source in hinted/*.ttf; do \ + touched=$$(mktemp); \ + subsetted=$$(mktemp); \ + final=out/web/$$(basename $$source); \ + python scripts/touchup_for_web.py $$source $$touched && \ + python scripts/subset_for_web.py $$touched $$subsetted && \ + python scripts/force_yminmax.py $$subsetted $$final && \ + rm $$touched $$subsetted; \ + done + test: test-android test-coverage test-general test-general: @@ -62,5 +74,8 @@ test-general: test-android: python scripts/run_android_tests.py +test-web: + python scripts/run_web_tests.py + test-coverage: python scripts/coverage_test.py |