gotty/Makefile

28 lines
856 B
Makefile
Raw Normal View History

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