2015-08-21 12:45:43 +08:00
|
|
|
gotty: app/resource.go main.go app/*.go
|
2015-08-16 17:47:23 +08:00
|
|
|
go build
|
|
|
|
|
2015-08-23 13:04:31 +08:00
|
|
|
resource: app/resource.go
|
2015-08-21 12:45:43 +08:00
|
|
|
|
2015-08-23 19:40:18 +08:00
|
|
|
app/resource.go: bindata/static/hterm.js bindata/static/gotty.js bindata/static/index.html
|
2015-08-23 13:04:31 +08:00
|
|
|
go-bindata -prefix bindata -pkg app -ignore=\\.gitkeep -o app/resource.go bindata/...
|
2015-08-20 16:16:13 +08:00
|
|
|
gofmt -w app/resource.go
|
2015-08-16 17:47:23 +08:00
|
|
|
|
|
|
|
bindata:
|
|
|
|
mkdir bindata
|
2015-08-17 06:00:17 +08:00
|
|
|
|
2015-08-23 13:04:31 +08:00
|
|
|
bindata/static: bindata
|
|
|
|
mkdir bindata/static
|
|
|
|
|
|
|
|
bindata/static/hterm.js: bindata/static libapps/hterm/js/*.js
|
2015-08-16 17:47:23 +08:00
|
|
|
cd libapps && \
|
2015-08-23 13:04:31 +08:00
|
|
|
LIBDOT_SEARCH_PATH=`pwd` ./libdot/bin/concat.sh -i ./hterm/concat/hterm_all.concat -o ../bindata/static/hterm.js
|
2015-08-16 17:47:23 +08:00
|
|
|
|
2015-08-23 13:04:31 +08:00
|
|
|
bindata/static/gotty.js: bindata/static resources/gotty.js
|
|
|
|
cp resources/gotty.js bindata/static/gotty.js
|
2015-08-16 17:47:23 +08:00
|
|
|
|
2015-08-23 19:40:18 +08:00
|
|
|
bindata/static/index.html: bindata/static resources/index.html
|
|
|
|
cp resources/index.html bindata/static/index.html
|