Package: golang-github-mailru-easyjson / 0.0~git20161103.0.159cdb8-1.1

fix-test-generate.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Index: golang-github-mailru-easyjson/Makefile
===================================================================
--- golang-github-mailru-easyjson.orig/Makefile
+++ golang-github-mailru-easyjson/Makefile
@@ -1,6 +1,8 @@
 PKG=github.com/mailru/easyjson
-GOPATH:=$(PWD)/.root:$(GOPATH)
+GOPATH:=$(shell pwd)/obj-$(DEB_BUILD_GNU_TYPE)
 export GOPATH
+PATH:=$(PATH):$(shell pwd)/obj-$(DEB_BUILD_GNU_TYPE)/bin
+export PATH
 
 all: test
 
@@ -16,18 +18,18 @@ clean:
 build:
 	go build -i -o .root/bin/easyjson $(PKG)/easyjson
 
-generate: root build
-	.root/bin/easyjson -stubs \
-		.root/src/$(PKG)/tests/snake.go \
-		.root/src/$(PKG)/tests/data.go \
-		.root/src/$(PKG)/tests/omitempty.go \
-		.root/src/$(PKG)/tests/nothing.go
-
-	.root/bin/easyjson -all .root/src/$(PKG)/tests/data.go 
-	.root/bin/easyjson -all .root/src/$(PKG)/tests/nothing.go
-	.root/bin/easyjson -snake_case .root/src/$(PKG)/tests/snake.go
-	.root/bin/easyjson -omit_empty .root/src/$(PKG)/tests/omitempty.go
-	.root/bin/easyjson -build_tags=use_easyjson .root/src/$(PKG)/benchmark/data.go
+generate:
+	easyjson -stubs \
+		$(GOPATH)/src/$(PKG)/tests/snake.go \
+		$(GOPATH)/src/$(PKG)/tests/data.go \
+		$(GOPATH)/src/$(PKG)/tests/omitempty.go \
+		$(GOPATH)/src/$(PKG)/tests/nothing.go
+
+	easyjson -all $(GOPATH)/src/$(PKG)/tests/data.go 
+	easyjson -all $(GOPATH)/src/$(PKG)/tests/nothing.go
+	easyjson -snake_case $(GOPATH)/src/$(PKG)/tests/snake.go
+	easyjson -omit_empty $(GOPATH)/src/$(PKG)/tests/omitempty.go
+	easyjson -build_tags=use_easyjson $(GOPATH)/src/$(PKG)/benchmark/data.go
 
 test: generate root
 	go test \