gotty/Makefile
Iwasaki Yudai 7e2befa1bb Add make resource that simply generates app/resource.go
Easy to run when you don't want to build a binary.
2015-08-21 19:01:08 +09:00

22 lines
620 B
Makefile

gotty: app/resource.go main.go app/*.go
go build
resource: app/resource.go
app/resource.go: bindata/hterm.js bindata/index.html bindata/gotty.js
go-bindata -pkg app -ignore=\\.gitkeep -o app/resource.go bindata/
gofmt -w app/resource.go
bindata:
mkdir bindata
bindata/hterm.js: bindata libapps/hterm/js/*.js
cd libapps && \
LIBDOT_SEARCH_PATH=`pwd` ./libdot/bin/concat.sh -i ./hterm/concat/hterm_all.concat -o ../bindata/hterm.js
bindata/index.html: bindata resources/index.html
cp resources/index.html bindata/index.html
bindata/gotty.js: bindata resources/gotty.js
cp resources/gotty.js bindata/gotty.js