Skip to content

Commit 753441e

Browse files
author
kasivia
committedFeb 17, 2016
Makefile changes to use $GOPATH var

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed
 

‎Makefile

+8-8
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ checks:
3838

3939
run-build: deps checks clean
4040
cd ${GOPATH}/src/github.com/contiv/netplugin && version/generate_version ${USE_RELEASE} && \
41-
cd /opt/gopath/src/github.com/contiv/netplugin && \
41+
cd /$(GOPATH)/src/github.com/contiv/netplugin && \
4242
godep go install -v $(TO_BUILD) && \
4343
sudo cp contrib/completion/bash/netctl /etc/bash_completion.d/netctl
4444

4545
build:
4646
make start
47-
vagrant ssh netplugin-node1 -c 'sudo -i bash -lc "source /etc/profile.d/envvar.sh && cd /opt/gopath/src/github.com/contiv/netplugin && make run-build"'
47+
vagrant ssh netplugin-node1 -c 'sudo -i bash -lc "source /etc/profile.d/envvar.sh && cd /$(GOPATH)/src/github.com/contiv/netplugin && make run-build"'
4848
make stop
4949

5050
clean: deps
@@ -78,15 +78,15 @@ stop:
7878

7979
demo:
8080
vagrant up
81-
vagrant ssh netplugin-node1 -c 'sudo -i bash -lc "source /etc/profile.d/envvar.sh && cd /opt/gopath/src/github.com/contiv/netplugin && make run-build"'
82-
vagrant ssh netplugin-node1 -c 'nohup bash -lc "sudo /opt/gopath/bin/netplugin -plugin-mode docker -vlan-if eth2 2>&1> /tmp/netplugin.log &"'
83-
vagrant ssh netplugin-node2 -c 'nohup bash -lc "sudo /opt/gopath/bin/netplugin -plugin-mode docker -vlan-if eth2 2>&1> /tmp/netplugin.log &"'
81+
vagrant ssh netplugin-node1 -c 'sudo -i bash -lc "source /etc/profile.d/envvar.sh && cd /$(GOPATH)/src/github.com/contiv/netplugin && make run-build"'
82+
vagrant ssh netplugin-node1 -c 'nohup bash -lc "sudo /$(GOPATH)/bin/netplugin -plugin-mode docker -vlan-if eth2 2>&1> /tmp/netplugin.log &"'
83+
vagrant ssh netplugin-node2 -c 'nohup bash -lc "sudo /$(GOPATH)/bin/netplugin -plugin-mode docker -vlan-if eth2 2>&1> /tmp/netplugin.log &"'
8484
sleep 10
85-
vagrant ssh netplugin-node1 -c 'nohup bash -lc "/opt/gopath/bin/netmaster 2>&1> /tmp/netmaster.log &"'
85+
vagrant ssh netplugin-node1 -c 'nohup bash -lc "/$(GOPATH)/bin/netmaster 2>&1> /tmp/netmaster.log &"'
8686
sleep 10
8787

8888
ssh:
89-
@vagrant ssh netplugin-node1 -c 'bash -lc "cd /opt/gopath/src/github.com/contiv/netplugin/ && bash"' || echo 'Please run "make demo"'
89+
@vagrant ssh netplugin-node1 -c 'bash -lc "cd /$(GOPATH)/src/github.com/contiv/netplugin/ && bash"' || echo 'Please run "make demo"'
9090

9191
unit-test: stop clean build
9292
./scripts/unittests -vagrant
@@ -95,7 +95,7 @@ centos-tests:
9595
CONTIV_NODE_OS=centos make clean build unit-test sanity-test stop
9696

9797
sanity-test: start
98-
vagrant ssh netplugin-node1 -c 'bash -lc "cd /opt/gopath/src/github.com/contiv/netplugin/scripts/python && PYTHONIOENCODING=utf-8 ./sanity.py -nodes 192.168.2.10,192.168.2.11"'
98+
vagrant ssh netplugin-node1 -c 'bash -lc "cd /$(GOPATH)/src/github.com/contiv/netplugin/scripts/python && PYTHONIOENCODING=utf-8 ./sanity.py -nodes 192.168.2.10,192.168.2.11"'
9999

100100
host-build:
101101
@echo "dev: making binaries..."

0 commit comments

Comments
 (0)
Please sign in to comment.