Add test command to makefile.
This commit is contained in:
parent
9652df9366
commit
3bbffa9325
1 changed files with 8 additions and 1 deletions
9
Makefile
9
Makefile
|
@ -2,9 +2,16 @@ DESTDIR=/
|
|||
PREFIX=${HOME}/
|
||||
BINDIR=bin/
|
||||
|
||||
default:
|
||||
.PHONY: default build test install uninstall clean
|
||||
|
||||
default: build
|
||||
|
||||
build:
|
||||
go build -o build/ ./...
|
||||
|
||||
test:
|
||||
go test ./...
|
||||
|
||||
install:
|
||||
mkdir -p ${DESTDIR}/${PREFIX}/${BINDIR}
|
||||
cp build/evinfo ${DESTDIR}/${PREFIX}/${BINDIR}/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue