فهرست منبع

[Makefile] updated make targets

Chris Simpkins 7 سال پیش
والد
کامیت
14b1912f15
1فایلهای تغییر یافته به همراه35 افزوده شده و 17 حذف شده
  1. 35 17
      Makefile

+ 35 - 17
Makefile

@@ -5,40 +5,58 @@ archives:
 
 build: ttf webfonts
 
-build-with-dependencies: source/*.ufo
-	./build-pipenv.sh
-	./build-ttf.sh --install-dependencies
-	./build-woff.sh --install-dependencies
-	./build-woff2.sh --install-dependencies
-	./build-subsets.sh
+build-with-dependencies: compile-local-dep ttf webfonts
+
+build-system: ttf-system webfonts-system
+
+build-local-ttfa:
+	tools/scripts/install/ttfautohint-build.sh
+
+build-local-sfnt2woffzopfli:
+	tools/scripts/install/sfnt2woff-zopfli-build.sh
+
+build-local-woff2:
+	tools/scripts/install/woff2-build.sh
+
+compile-local-dep: build-local-ttfa build-local-sfnt2woffzopfli build-local-woff2
 
 css:
 	tools/scripts/css/css-build.sh
 
 lint: shellcheck ufolint
 
+pipenv:
+	./build-pipenv.sh
+
 shellcheck: build-pipenv.sh build-ttf.sh build-woff.sh build-woff2.sh build-subsets.sh tools/scripts/install/ttfautohint-build.sh postbuild_processing/archive_prep/archiver.sh tools/scripts/css/css-build.sh
 	$@ $^
 
-subsets: source/*.ufo
-	./build-pipenv.sh
+subsets: pipenv
 	./build-subsets.sh
 
-ttf:
-	./build-pipenv.sh
+ttf: pipenv
 	./build-ttf.sh
 
+ttf-system:
+	./build-ttf.sh --system
+
 ufolint: source/*.ufo
 	$@ $^
 
-webfonts:
-	./build-pipenv.sh
-	./build-woff.sh
-	./build-woff2.sh
-	./build-subsets.sh
+webfonts: woff woff2 subsets
+
+webfonts-system: woff-system woff2-system subsets-system
 
-woff:
+woff: pipenv
 	./build-woff.sh
 
-woff2:
+woff-system:
+	./build-woff.sh --system
+
+woff2: pipenv
 	./build-woff2.sh
+
+woff2-system:
+	./build-woff2.sh --system
+
+.PHONY: all archives build build-with-dependencies build-local-ttfa build-local-sfnt2woffzopfli build-local-woff2 build-system compile-local-dep css lint pipenv shellcheck subsets ttf ttf-system ufolint webfonts webfonts-system woff woff-system woff2 woff2-system