Adam Babik a19e502686 Remove go.rice in favour of go generate (#444)
As fetch.go was the only consumer of go.rice, it could be safely removed in favour of go-bindata and go generate.
Motivation to do that was the fact that go.rice throws panic in iOS when compiled with gomobile.
2017-11-03 18:11:37 -04:00

15 lines
412 B
Makefile

generate: dist-fetch/bundle.js
go generate .
gofmt -s -w dist_fetch.go
dist-fetch/bundle.js: js/bundle.js
mkdir -p dist-fetch
cp -a js/bundle.js dist-fetch/bundle.js
cp -a js/bundle.js.map dist-fetch/bundle.js.map
js/bundle.js: js/fetch.js js/headers.js js/index.js js/request.js js/response.js
cd js && npm install && npm run bundle${BUNDLE_SUFFIX}
clean:
rm -rf dist_fetch.go dist-fetch js/bundle.js