[VOL-5342] - Install repo:onf-make as a git submodule
.gitmodules
.pre-commit-config.yaml
Makefile
config.mk
lf/README.md
lf/config.mk
lf/include.mk
lf/local/include.mk
lf/onf-make
lf/transition.mk
makefiles/include.mk
makefiles/lint/include.mk
-------------------------
o Added transition.mk -- bridge logic for migrating to repo:onf-make.
o Updated a few paths in makefiles/ to use latest lint and virtualenv
makefiles to workaround some warnings and failures in the case of lint.
Change-Id: I1b5d3e46d57e427950ee772a4555f5f75a817417
diff --git a/Makefile b/Makefile
index 21b9e81..3a131d0 100644
--- a/Makefile
+++ b/Makefile
@@ -17,15 +17,25 @@
$(if $(DEBUG),$(warning ENTER))
-.DEFAULT_GOAL := help
+##-------------------##
+##---] GLOBALS [---##
+##-------------------##
+ifndef .DEFAULT_GOAL
+ .DEFAULT_GOAL := help # ?= help evaluated late
+endif
+MAKECMDGOALS ?= help
-$(if $(VERBOSE),$(eval export VERBOSE=$(VERBOSE))) # visible to include(s)
+$(if $(findstring disabled-joey,$(USER)),\
+ $(eval USE_LF_MK := 1)) # special snowflake
##--------------------##
##---] INCLUDES [---##
##--------------------##
-include config.mk
-include makefiles/include.mk
+ifdef USE_LF_MK
+ include lf/include.mk
+else
+ include lf/transition.mk
+endif # ifdef USE_LF_MK
# Variables
VERSION ?= $(shell cat ./VERSION)
@@ -162,7 +172,7 @@
## -----------------------------------------------------------------------
lint: lint-mod lint-dockerfile ## Run all lint targets
-include $(MAKEDIR)/analysis/include.mk
+include $(legacy-mk)/analysis/include.mk
## -----------------------------------------------------------------------
## -----------------------------------------------------------------------
@@ -178,7 +188,7 @@
distclean sterile :: ## Removes any local filesystem artifacts generated by a build or test run
$(RM) -r ./sca-report
-fmt: ## Formats the soure code to go best practice style
+fmt: ## Formats the source code to go best practice style
gofmt -s -e -w $(PACKAGES)
# @go fmt ${PACKAGES}