2020-10-08 18:21:27 +02:00
|
|
|
.PHONY: prebuild clean cleanall pack packdev builddev build watch go goUbuntu
|
|
|
|
|
|
|
|
all: build
|
|
|
|
|
|
|
|
pack:
|
|
|
|
npm run pack
|
|
|
|
|
|
|
|
packdev:
|
|
|
|
npm run packdev
|
|
|
|
|
|
|
|
go:
|
2020-10-17 20:48:54 +02:00
|
|
|
cd server; go build -o ../bin/octoserver ./main
|
2020-10-08 18:21:27 +02:00
|
|
|
|
2020-10-18 01:17:17 +02:00
|
|
|
generate:
|
|
|
|
cd server; go generate ./...
|
|
|
|
|
2020-10-16 19:20:43 +02:00
|
|
|
watch-server:
|
|
|
|
cd server; modd
|
|
|
|
|
2020-10-08 18:21:27 +02:00
|
|
|
goUbuntu:
|
2020-10-17 20:48:54 +02:00
|
|
|
cd server; env GOOS=linux GOARCH=amd64 go build -o ../bin/octoserver ./main
|
2020-10-08 18:21:27 +02:00
|
|
|
|
|
|
|
builddev: packdev go
|
|
|
|
|
|
|
|
build: pack go
|
|
|
|
|
|
|
|
watch:
|
|
|
|
npm run watchdev
|
|
|
|
|
|
|
|
prebuild:
|
|
|
|
npm install
|
2020-10-09 19:25:05 +02:00
|
|
|
go get github.com/gorilla/mux
|
|
|
|
go get github.com/gorilla/websocket
|
|
|
|
go get github.com/spf13/viper
|
|
|
|
go get github.com/lib/pq
|
|
|
|
go get github.com/mattn/go-sqlite3
|
2020-10-08 18:21:27 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf bin
|
|
|
|
rm -rf dist
|
|
|
|
rm -rf pack
|
|
|
|
|
|
|
|
cleanall: clean
|
|
|
|
rm -rf node_modules
|