Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/13rac1/emojione-color-font.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Erickson <eosrei@gmail.com>2016-03-11 06:52:53 +0300
committerBrad Erickson <eosrei@gmail.com>2016-03-11 06:54:16 +0300
commitc4c5acd1be661aceffc2d5d42ac55b4febdb6e50 (patch)
tree2287fd61a0c80593f5686be519ae6fdf1f18e476
parentbd621cf4cbe731287d6d0aa5352d2d88dbb0fc7c (diff)
makefile: Build both versions and package to zips
-rw-r--r--Makefile33
-rw-r--r--scfbuild-osx.yml1
-rw-r--r--scfbuild.yml1
3 files changed, 24 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 7929a48..64a7c36 100644
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,20 @@
-
+# Makefile to create all versions of the Emoji One Color SVGinOT font
# Run with: make -j [NUMBER_OF_CPUS]
-.PHONY: clean
-
-OUTPUT_FONT := build/EmojiOneColor-SVGinOT.ttf
-SCFBUILD := SCFBuild/bin/scfbuild
-
TMP := /tmp
# Use Linux Shared Memory to avoid wasted disk writes.
#TMP := /dev/shm
+# Where to find scfbuild?
+SCFBUILD := SCFBuild/bin/scfbuild
+
+VERSION := 1.0-beta
+FONT_PREFIX := build/EmojiOneColor-SVGinOT
+REGULAR_FONT := $(FONT_PREFIX).ttf
+OSX_FONT := $(FONT_PREFIX)-OSX.ttf
+REGULAR_ZIP := $(FONT_PREFIX)-$(VERSION).zip
+OSX_ZIP := $(FONT_PREFIX)-OSX-$(VERSION).zip
+
# There are two SVG source directories to keep the emojione assets separate.
SVG_EMOJIONE := assets/emojione-svg
SVG_MORE := assets/svg
@@ -21,10 +26,20 @@ SVG_STAGE_FILES := $(patsubst $(SVG_MORE)/%.svg, build/stage/%.svg, $(SVG_STAGE_
SVG_TRACE_FILES := $(patsubst build/stage/%.svg, build/svg-trace/%.svg, $(SVG_STAGE_FILES))
SVG_COLOR_FILES := $(patsubst build/stage/%.svg, build/svg-color/%.svg, $(SVG_STAGE_FILES))
-all: $(OUTPUT_FONT)
+.PHONY: clean package
+
+all: $(REGULAR_FONT) $(OSX_FONT)
+
+package: all
+ rm -f $(REGULAR_ZIP) $(OSX_ZIP)
+ 7z a -tzip -mx=9 $(REGULAR_ZIP) ./$(REGULAR_FONT)
+ 7z a -tzip -mx=9 $(OSX_ZIP) ./$(OSX_FONT)
+
+$(REGULAR_FONT): $(SVG_TRACE_FILES) $(SVG_COLOR_FILES)
+ $(SCFBUILD) -c scfbuild.yml -o $(REGULAR_FONT) --font-version="$(VERSION)"
-$(OUTPUT_FONT): $(SVG_TRACE_FILES) $(SVG_COLOR_FILES)
- $(SCFBUILD) -c scfbuild.yml -o $(OUTPUT_FONT)
+$(OSX_FONT): $(SVG_TRACE_FILES) $(SVG_COLOR_FILES)
+ $(SCFBUILD) -c scfbuild-osx.yml -o $(OSX_FONT) --font-version="$(VERSION)"
# Create black SVG traces of the color SVGs to use as glyphs.
# 1. Make the EmojiOne SVG into a PNG with Inkscape
diff --git a/scfbuild-osx.yml b/scfbuild-osx.yml
index 05abe17..33394fc 100644
--- a/scfbuild-osx.yml
+++ b/scfbuild-osx.yml
@@ -21,7 +21,6 @@ table_name:
subfamily: Regular
unique_id: Emoji One Color SVGinOT OSX eosrei.net
full_name: Emoji One Color SVGinOT OSX
- version: 1.0-beta
# Use the same postscript name as the Apple Color Emoji font to overide it.
postscript_name: AppleColorEmoji
#trademark:
diff --git a/scfbuild.yml b/scfbuild.yml
index e7eb0e9..590ae1b 100644
--- a/scfbuild.yml
+++ b/scfbuild.yml
@@ -21,7 +21,6 @@ table_name:
subfamily: Regular
unique_id: Emoji One Color SVGinOT eosrei.net
full_name: Emoji One Color SVGinOT
- version: 1.0-beta
# No spaces in PostScript Names
postscript_name: EmojiOneColorSVGinOT
#trademark: