Makefile: Fix bug where network was not disabled

This commit moves the include statement to the bottom of the file to
ensure that all variables are set before conditionals are evaluated.

I also changed the ifndef NETWORK to ifdef NETWORK as the former was
incorrect. We want `NET_OPTS="--network=none"` in cases where NETWORK is
not defined.

Fixes: #2134

Signed-off-by: Dave Tucker <dt@docker.com>
This commit is contained in:
Dave Tucker
2017-06-30 11:55:08 +01:00
parent 736713dc8f
commit 5a225b9dc5
26 changed files with 51 additions and 51 deletions

View File

@@ -1,5 +1,5 @@
include ../package.mk
IMAGE=vsudd
DEPS=$(wildcard *.go)
NETWORK=1
include ../package.mk