go (265:864835cbba67) go (270:d7774035f07b)
1
2# Copyright (C) Max Romanov
3# Copyright (C) NGINX, Inc.
4
5
6shift
7
8NXT_GO=go

--- 95 unchanged lines hidden (view full) ---

104 ${NXT_GO} build -o $NXT_BUILD_DIR/nxt_go_gen.a \\
105 --buildmode=c-archive go/unit
106
107
108install: ${NXT_GO}-install
109
110${NXT_GO}-install: ${NXT_GO}
111 install -d \$(DESTDIR)\$(GOPATH)/src/unit
1
2# Copyright (C) Max Romanov
3# Copyright (C) NGINX, Inc.
4
5
6shift
7
8NXT_GO=go

--- 95 unchanged lines hidden (view full) ---

104 ${NXT_GO} build -o $NXT_BUILD_DIR/nxt_go_gen.a \\
105 --buildmode=c-archive go/unit
106
107
108install: ${NXT_GO}-install
109
110${NXT_GO}-install: ${NXT_GO}
111 install -d \$(DESTDIR)\$(GOPATH)/src/unit
112 install -p ./src/go/unit/* \$(DESTDIR)\$(GOPATH)/src/unit/
112 install -p -m644 ./src/go/unit/* \$(DESTDIR)\$(GOPATH)/src/unit/
113 CGO_CFLAGS="-I\$(NXT_ROOT)/$NXT_BUILD_DIR -I\$(NXT_ROOT)/src" \\
114 CGO_LDFLAGS="-L\$(NXT_ROOT)/$NXT_BUILD_DIR ${NXT_LIBRT}" \\
115 GOPATH=\$(DESTDIR)\$(GOPATH) \\
116 ${NXT_GO} install -v unit
117
118
119uninstall: ${NXT_GO}-uninstall
120
121${NXT_GO}-uninstall:
122 rm -rf \$(DESTDIR)\$(GOPATH)/src/unit
123 rm -f \$(DESTDIR)\$(GOPATH)/pkg/\$(GOOS)_\$(GOARCH)/unit.a
124
125END
113 CGO_CFLAGS="-I\$(NXT_ROOT)/$NXT_BUILD_DIR -I\$(NXT_ROOT)/src" \\
114 CGO_LDFLAGS="-L\$(NXT_ROOT)/$NXT_BUILD_DIR ${NXT_LIBRT}" \\
115 GOPATH=\$(DESTDIR)\$(GOPATH) \\
116 ${NXT_GO} install -v unit
117
118
119uninstall: ${NXT_GO}-uninstall
120
121${NXT_GO}-uninstall:
122 rm -rf \$(DESTDIR)\$(GOPATH)/src/unit
123 rm -f \$(DESTDIR)\$(GOPATH)/pkg/\$(GOOS)_\$(GOARCH)/unit.a
124
125END