44 lines
686 B
Makefile
44 lines
686 B
Makefile
.PHONY: prebuild clean cleanall pack packdev builddev build watch go goUbuntu
|
|
|
|
all: build
|
|
|
|
pack:
|
|
npm run pack
|
|
|
|
packdev:
|
|
npm run packdev
|
|
|
|
go:
|
|
cd server; go build -o ../bin/octoserver ./main
|
|
|
|
generate:
|
|
cd server; go generate ./...
|
|
|
|
watch-server:
|
|
cd server; modd
|
|
|
|
goUbuntu:
|
|
cd server; env GOOS=linux GOARCH=amd64 go build -o ../bin/octoserver ./main
|
|
|
|
builddev: packdev go
|
|
|
|
build: pack go
|
|
|
|
watch:
|
|
npm run watchdev
|
|
|
|
prebuild:
|
|
npm install
|
|
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
|
|
|
|
clean:
|
|
rm -rf bin
|
|
rm -rf dist
|
|
rm -rf pack
|
|
|
|
cleanall: clean
|
|
rm -rf node_modules
|