summaryrefslogtreecommitdiff
path: root/internal/files/bin/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'internal/files/bin/Makefile')
-rw-r--r--internal/files/bin/Makefile22
1 files changed, 22 insertions, 0 deletions
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}
+