Separation of module prerequisites for 'all' target in Makefile.

To avoid using sed -i.
This commit is contained in:
Max Romanov
2017-08-29 11:33:34 -07:00
parent 9d487df10d
commit 73dc76b0bf
3 changed files with 6 additions and 6 deletions

View File

@@ -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