Browse Source

subset webfonts when running make

Marc Foley 8 years ago
parent
commit
ea0e962a5a
1 changed files with 5 additions and 3 deletions
  1. 5 3
      Makefile

+ 5 - 3
Makefile

@@ -64,9 +64,11 @@ web:
 			hinted/Roboto-*) unhinted=out/RobotoTTF/$$basename ;; \
 			*) unhinted=out/RobotoCondensedTTF/$$basename ;; \
 		esac; \
-		final=out/web/$$basename; \
-		python scripts/touchup_for_web.py $$source $$unhinted $$final Roboto; \
-		if [[ $$? -ne 0 ]]; then exit 1; fi; \
+		touched=$$(mktemp); \
+		final=out/web/$$(basename $$source); \
+		python scripts/touchup_for_web.py $$source $$unhinted $$touched Roboto && \
+		python scripts/subset_for_web.py $$touched $$final && \
+		rm $$touched; \
 	done
 
 chromeos: