[VOL-2252] Using omci-sim v0.0.1
Adding Makefile support to load a development version of the omci-sim library
Change-Id: I341f626adaec35e697eb24470594942463d8f9a8
diff --git a/Makefile b/Makefile
index a7e62f6..9f4d103 100644
--- a/Makefile
+++ b/Makefile
@@ -73,7 +73,7 @@
fmt:
go fmt ./...
-docker-build: # @HELP Build the BBSim docker container (contains BBSimCtl too)
+docker-build: local-omci-sim# @HELP Build the BBSim docker container (contains BBSimCtl too)
docker build -t ${DOCKER_REGISTRY}${DOCKER_REPOSITORY}bbsim:${DOCKER_TAG} -f build/package/Dockerfile .
docker-push: # @HELP Push the docker container to a registry
@@ -137,6 +137,12 @@
{printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}; \
'
+## Local Development Helpers
+local-omci-sim:
+ifdef LOCAL_OMCI_SIM
+ mkdir -p vendor/github.com/opencord/omci-sim/
+ cp -r ${LOCAL_OMCI_SIM}/* vendor/github.com/opencord/omci-sim/
+endif
# Internals