gotty/Makefile

31 lines
1005 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-30 15:27:40 +08:00
app/resource.go: bindata/static/js/hterm.js bindata/static/js/gotty.js bindata/static/index.html bindata/static/favicon.png
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
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
2015-08-30 15:27:40 +08:00
bindata/static/favicon.png: bindata/static resources/favicon.png
cp resources/favicon.png bindata/static/favicon.png
bindata/static/js: bindata/static
2015-08-30 15:27:40 +08:00
mkdir -p 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