summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-05-29 04:28:32 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-05-29 04:34:44 -0400
commit0ea603d96eeefa12095a713900ef645ed3ca2560 (patch)
tree0d073b266db7beac8f471256ddd689a18d4a7a00 /Makefile
parentb6c0ad15fae9f747dbf91525caf6189beb358f76 (diff)
Support using deno as a library
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e7103039e..437e8882f 100644
--- a/Makefile
+++ b/Makefile
@@ -18,6 +18,7 @@ TS_FILES = \
v8worker2.d.ts
GO_FILES = \
+ cmd/main.go \
assets.go \
deno_dir.go \
deno_dir_test.go \
@@ -31,13 +32,14 @@ GO_FILES = \
timers.go \
util.go
+
deno: msg.pb.go $(GO_FILES)
- go build -o deno
+ go build -o deno ./cmd
assets.go: dist/main.js
cp node_modules/typescript/lib/lib.*d.ts dist/
cp deno.d.ts dist/
- go-bindata -pkg main -o assets.go dist/
+ go-bindata -pkg deno -o assets.go dist/
msg.pb.go: msg.proto
protoc --go_out=. msg.proto