blob: 3aff64ce726535d88d7a63eacba8d994c6d9b1a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
TRG= ../files.go
JSON= ../../../font/calligra.json
Z= ../../../font/calligra.z
${TRG} : ${JSON} ${Z} ./bin
echo "package files" > ${TRG}
echo "" >> ${TRG}
echo "// CalligraJson is embedded byte slice for calligra.json" >> ${TRG}
echo "var CalligraJson = []byte{" >> ${TRG}
./bin < ${JSON} >> ${TRG}
echo "}" >> ${TRG}
echo "" >> ${TRG}
echo "// CalligraZ is embedded byte slice for calligra.z" >> ${TRG}
echo "var CalligraZ = []byte{" >> ${TRG}
./bin < ${Z} >> ${TRG}
echo "}" >> ${TRG}
gofmt -s -w ${TRG}
./bin : bin.go
go build -v
clean :
rm -f ./bin ${TRG}
|