28 lines
388 B
Makefile
28 lines
388 B
Makefile
######################
|
|
# Makefile for QRank #
|
|
######################
|
|
|
|
# Main target
|
|
run:
|
|
go run ./cmd
|
|
|
|
# Formatting the whole codebase
|
|
format:
|
|
gofmt -w ./src
|
|
gofmt -w ./cmd
|
|
|
|
# Test in verbose mode
|
|
test:
|
|
go test ./src -v
|
|
go test ./cmd -v
|
|
|
|
# Nix stuff
|
|
nix-run:
|
|
nix develop --command make run
|
|
|
|
nix-test:
|
|
nix develop --command make test
|
|
|
|
nix-format:
|
|
nix develop --command make format
|