]> Cypherpunks.ru repositories - gocheese.git/blobdiff - Makefile
Prepare for website
[gocheese.git] / Makefile
index aa71341ccc08320d0c2a2782a9c72c8d886f70d8..3fdfbd42e8a6c0194fa4553690761849d9e59502 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,19 @@
 GO ?= go
 MAKEINFO ?= makeinfo
 
+GOPATH != pwd
 VERSION != cat VERSION
+
+MOD = go.cypherpunks.ru/gocheese/v2
 LDFLAGS = -X main.Version=$(VERSION)
 
 all: gocheese gocheese.info
 
-gocheese: gocheese.go
-       GOPATH=$(GOPATH) go build -ldflags "$(LDFLAGS)"
+gocheese:
+       GOPATH=$(GOPATH) go build -o gocheese -ldflags "$(LDFLAGS)" $(MOD)
 
 gocheese.info: gocheese.texi
        $(MAKEINFO) -o $@ gocheese.texi
+
+test:
+       GOPATH=$(GOPATH) go test $(MOD)/...