mirror of
https://github.com/sorenisanerd/gotty.git
synced 2024-11-09 23:34:26 +00:00
28 lines
856 B
Makefile
28 lines
856 B
Makefile
gotty: app/resource.go main.go app/*.go
|
|
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/...
|
|
gofmt -w app/resource.go
|
|
|
|
bindata:
|
|
mkdir bindata
|
|
|
|
bindata/static: bindata
|
|
mkdir bindata/static
|
|
|
|
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
|