summaryrefslogtreecommitdiffhomepage
path: root/auto/modules/go
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-08-29 11:33:34 -0700
committerMax Romanov <max.romanov@nginx.com>2017-08-29 11:33:34 -0700
commit73dc76b0bf87336d5e0a5d8f8c820a0c5e4de364 (patch)
tree2ccb8737efffad0891b801419523c9bb25efbd01 /auto/modules/go
parent9d487df10df5000a84c9c1a75fff0cff525d4454 (diff)
downloadunit-73dc76b0bf87336d5e0a5d8f8c820a0c5e4de364.tar.gz
unit-73dc76b0bf87336d5e0a5d8f8c820a0c5e4de364.tar.bz2
Separation of module prerequisites for 'all' target in Makefile.
To avoid using sed -i.
Diffstat (limited to 'auto/modules/go')
-rw-r--r--auto/modules/go4
1 files changed, 2 insertions, 2 deletions
diff --git a/auto/modules/go b/auto/modules/go
index 27670dca..dcbc63a5 100644
--- a/auto/modules/go
+++ b/auto/modules/go
@@ -95,6 +95,8 @@ cat << END >> $NXT_MAKEFILE
.PHONY: ${NXT_GO}
+all: ${NXT_GO}
+
NXT_ROOT = `pwd`
GOPATH = $NXT_GO_PATH
@@ -115,5 +117,3 @@ ${NXT_GO}-uninstall:
rm -f \$(GOPATH)/pkg/\$(GOOS)_\$(GOARCH)/nginext.a
END
-
-sed -i.bak -e "s/\(all:.*\)/\1 ${NXT_GO}/" $NXT_MAKEFILE