[fix] Makefile and git-ignored files

This commit is contained in:
Piotr Biernat 2022-03-14 17:06:43 +01:00
parent 10ecb6fd0d
commit eb32faf8b2
2 changed files with 9 additions and 6 deletions

8
.gitignore vendored
View File

@ -1,6 +1,6 @@
!/**/.gitkeep
/.idea
.env
/vendor
/.env
/build/*
/test/data/*
/vendor

View File

@ -1,4 +1,4 @@
.PHONY: test
.PHONY: run race build test bench-cpu bench-mem bench-trace bench-clean
run:
go run cmd/server/main.go
@ -7,7 +7,7 @@ race:
go run --race cmd/server/main.go
build:
go build cmd/server/main.go
go build -o build/server cmd/server/main.go
test:
go test -v -run=. test/**/*.go
@ -27,6 +27,9 @@ bench-trace:
bench-clean:
rm -f test/data/*.out test/data/bench.log
clean:
rm -rf build
# run-profiler:
# go run cmd/server/main.go -cpuprofile cpu.prof -memprofile mem.prof
#