github.com/phpdave11/gofpdf@v1.4.2/internal/files/bin/Makefile (about)

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