From adcaebf957268ca694a22b1d8002e901ce915549 Mon Sep 17 00:00:00 2001 From: Kurt Date: Sat, 30 Jul 2016 17:01:07 -0400 Subject: Makefile for generating embedded calligra font file --- internal/files/bin/Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 internal/files/bin/Makefile (limited to 'internal/files/bin') diff --git a/internal/files/bin/Makefile b/internal/files/bin/Makefile new file mode 100644 index 0000000..64b9a77 --- /dev/null +++ b/internal/files/bin/Makefile @@ -0,0 +1,22 @@ +TRG= ../files.go +JSON= ../../../font/calligra.json +Z= ../../../font/calligra.z + +${TRG} : ${JSON} ${Z} ./bin + echo "package files" > ${TRG} + echo "" >> ${TRG} + echo "var CalligraJson = []byte{" >> ${TRG} + ./bin < ${JSON} >> ${TRG} + echo "}" >> ${TRG} + echo "" >> ${TRG} + echo "var CalligraZ = []byte{" >> ${TRG} + ./bin < ${Z} >> ${TRG} + echo "}" >> ${TRG} + gofmt -w ${TRG} + +./bin : bin.go + go build -v + +clean : + rm -f ./bin ${TRG} + -- cgit v1.2.1-24-ge1ad