diff --git a/.gitignore b/.gitignore index bb1df83..114840e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ -!/**/.gitkeep - /.idea -.env -/vendor + +/.env +/build/* /test/data/* +/vendor diff --git a/Makefile b/Makefile index 0d24256..b3c66d8 100644 --- a/Makefile +++ b/Makefile @@ -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 #