From dbf3e175274b7027a68dae8adaca9d389d260bd0 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Tue, 7 Apr 2015 20:18:00 +0000 Subject: [PATCH] added font fetch to Makefile --- sim/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sim/Makefile b/sim/Makefile index 9230ef9..a15ef3d 100644 --- a/sim/Makefile +++ b/sim/Makefile @@ -2,6 +2,8 @@ CFLAGS=-Wall -Wno-format -I/opt/local/include -Ihexagon LDFLAGS=-L/opt/local/lib -Lhexagon LIBS=-lgsl -lhexagon -lm -lgslcblas +FONT ?= SourceCodePro-Light.ttf + all: sim hexverts sim.o: | hexagon.h @@ -9,6 +11,12 @@ sim.o: | hexagon.h sim: africa.o sim.o climate.o map.o variate.o | variate.h hexagon/libhexagon.a $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $+ $(LIBS) +mkimage: | $(FONT) + +SourceCodePro-Light.ttf: + curl -L https://github.com/adobe-fonts/source-code-pro/archive/1.017R.tar.gz \ + | tar -xzf - --no-anchored --strip-components=2 SourceCodePro-Light.ttf + hexverts: hexverts.o | hexagon/libhexagon.a $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $+ -lhexagon -lm -- 2.40.0