[VOL-5026] (pre-)Build and deploy repo:voltha-go
Makefile
config.mk
makefiles/
makefiles/consts.mk
makefiles/include.mk
--------------------
o Includee the latest onf-make library makefiles.
o Define standard lint targets and docker arguments.
o Behavior configured through config.mk in the sandbox root.
Change-Id: I2bbb74109d020ed12736bae0c35360bddf2cbe7f
diff --git a/Makefile b/Makefile
index aa9d833..4141898 100644
--- a/Makefile
+++ b/Makefile
@@ -17,15 +17,13 @@
.DEFAULT_GOAL := help
-TOP ?= .
-MAKEDIR ?= $(TOP)/makefiles
-
$(if $(VERBOSE),$(eval export VERBOSE=$(VERBOSE))) # visible to include(s)
##--------------------##
##---] INCLUDES [---##
##--------------------##
-include $(MAKEDIR)/include.mk
+-include config.mk
+include makefiles/include.mk
# Variables
VERSION ?= $(shell cat ./VERSION)
@@ -184,9 +182,9 @@
${GOCOVER_COBERTURA} < $(tests-coverage).out > $(tests-coverage).xml ;\
exit $$RETURN
-clean: distclean ## Removes any local filesystem artifacts generated by a build
+clean :: distclean ## Removes any local filesystem artifacts generated by a build
-distclean sterile: ## Removes any local filesystem artifacts generated by a build or test run
+distclean sterile :: ## Removes any local filesystem artifacts generated by a build or test run
$(RM) -r ./sca-report
mod-update: ## Update go mod files
@@ -207,7 +205,7 @@
## ---------------------------------------------------------------------------
# For each makefile target, add ## <description> on the target line and it will be listed by 'make help'
## ---------------------------------------------------------------------------
-help: ## Print help for each Makefile target
+help :: ## Print help for each Makefile target
@echo "Usage: make [<target>]"
@echo " help This message"
@echo " todo Future enhancements"