summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 42bb252..36e62e5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,18 @@
MOD=ricketyspace.net/cryptopals
+PKGS=${MOD} ${MOD}/challenge ${MOD}/lib
-build: fmt
+build: fmt vet
go build
.PHONY: build
fmt:
- go fmt ${MOD} ${MOD}/challenge ${MOD}/lib
+ go fmt ${PKGS}
.PHONY: fmt
+vet:
+ go vet ./...
+.PHONY: vet
+
test:
go test ${ARGS} ${MOD}/lib
.PHONY: test