diff options
Diffstat (limited to '')
-rw-r--r-- | auto/modules/go | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/auto/modules/go b/auto/modules/go index 748b8c8d..f8a3ea6c 100644 --- a/auto/modules/go +++ b/auto/modules/go @@ -97,24 +97,23 @@ GOARCH = `${NXT_GO} env GOARCH` ${NXT_GO}: $NXT_BUILD_DIR/nxt_go_gen.h -$NXT_BUILD_DIR/nxt_go_gen.h: +$NXT_BUILD_DIR/nxt_go_gen.h: src/go/unit/*.go GOPATH=`pwd` \\ CGO_CPPFLAGS='-DNXT_CONFIGURE \\ -I`pwd`/src' \\ ${NXT_GO} build -o $NXT_BUILD_DIR/nxt_go_gen.a \\ - --buildmode=c-archive nginext + --buildmode=c-archive go/unit ${NXT_GO}-install: ${NXT_GO} - install -d \$(GOPATH)/src/nginext - install -p ./src/nginext/*.c ./src/nginext/*.h \\ - ./src/nginext/*.go \$(GOPATH)/src/nginext/ + install -d \$(GOPATH)/src/unit + install -p ./src/go/unit/* \$(GOPATH)/src/unit/ CGO_CFLAGS="-I\$(NXT_ROOT)/$NXT_BUILD_DIR -I\$(NXT_ROOT)/src" \\ CGO_LDFLAGS="-L\$(NXT_ROOT)/$NXT_BUILD_DIR ${NXT_LIBRT}" \\ GOPATH=$NXT_GO_PATH \\ - ${NXT_GO} install -v nginext + ${NXT_GO} install -v unit ${NXT_GO}-uninstall: - rm -rf \$(GOPATH)/src/nginext - rm -f \$(GOPATH)/pkg/\$(GOOS)_\$(GOARCH)/nginext.a + rm -rf \$(GOPATH)/src/unit + rm -f \$(GOPATH)/pkg/\$(GOOS)_\$(GOARCH)/unit.a END |