diff options
| author | Felix Hanley <felix@userspace.com.au> | 2017-03-19 15:19:42 +0000 |
|---|---|---|
| committer | Felix Hanley <felix@userspace.com.au> | 2017-03-19 15:19:42 +0000 |
| commit | 8a541d499b6f117cd3a81e475ee779ba60fc0637 (patch) | |
| tree | 7b3b5326235725ab93056b5ff4637d987fb0a7b6 /vendor/github.com/jung-kurt/gofpdf/internal/files/bin/Makefile | |
| parent | fe847b2d01060044274d20d2c35ae01a684d4ee3 (diff) | |
| download | crjw-maps-master.tar.gz crjw-maps-master.tar.bz2 | |
Diffstat (limited to 'vendor/github.com/jung-kurt/gofpdf/internal/files/bin/Makefile')
| -rw-r--r-- | vendor/github.com/jung-kurt/gofpdf/internal/files/bin/Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/vendor/github.com/jung-kurt/gofpdf/internal/files/bin/Makefile b/vendor/github.com/jung-kurt/gofpdf/internal/files/bin/Makefile new file mode 100644 index 0000000..3aff64c --- /dev/null +++ b/vendor/github.com/jung-kurt/gofpdf/internal/files/bin/Makefile @@ -0,0 +1,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} + |
