gotty/Makefile

28 lines
837 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/hterm.js bindata/static/gotty.js bindata/templates/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
bindata/templates: bindata
mkdir bindata/templates
bindata/static/hterm.js: bindata/static libapps/hterm/js/*.js
2015-08-16 09:47:23 +00: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 09:47:23 +00:00
bindata/static/gotty.js: bindata/static resources/gotty.js
cp resources/gotty.js bindata/static/gotty.js
2015-08-16 09:47:23 +00:00
bindata/templates/index.html: bindata/templates resources/index.html
cp resources/index.html bindata/templates/index.html