gotty/Makefile

25 lines
772 B
Makefile
Raw Normal View History

gotty: app/resource.go main.go app/*.go
2015-08-16 17:47:23 +08:00
go build
resource: app/resource.go
2015-08-23 19:40:18 +08:00
app/resource.go: bindata/static/hterm.js bindata/static/gotty.js bindata/static/index.html
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
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 && \
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
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