Explorar el Código

add Makefile for example (#951)

田欧 hace 8 años
padre
commit
0681715dda
Se han modificado 2 ficheros con 19 adiciones y 0 borrados
  1. 10 0
      examples/realtime-advanced/Makefile
  2. 9 0
      examples/realtime-chat/Makefile

+ 10 - 0
examples/realtime-advanced/Makefile

@@ -0,0 +1,10 @@
+all: deps build
+
+.PHONY: deps
+deps:
+	go get -d -v github.com/dustin/go-broadcast/...
+	go get -d -v github.com/manucorporat/stats/...
+
+.PHONY: build
+build: deps
+	go build -o realtime-advanced main.go rooms.go routes.go stats.go

+ 9 - 0
examples/realtime-chat/Makefile

@@ -0,0 +1,9 @@
+all: deps build
+
+.PHONY: deps
+deps:
+	go get -d -v github.com/dustin/go-broadcast/...
+
+.PHONY: build
+build: deps
+	go build -o realtime-chat main.go rooms.go template.go