Support distinct project and library makefile includes.
Makefile
makefiles/include.mk
makefiles/lint/include.mk
makefiles/python/include.mk
---------------------------
O Library makefiles only require an include directory var.
o Project makefiles require two vars, one for derived paths (TOP=).
o Infer library makefile path from the included makefile.
o Maintain MAKEDIR= and ONF_MAKEDIR= so caller can selectively
include what they want to use.
Change-Id: Id1a6d76a278edc130729dd641688c9e5793e90f4
diff --git a/Makefile b/Makefile
index c2b40ed..d397fb9 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,6 @@
# limitations under the License.
# -----------------------------------------------------------------------
-# Makefile for testing JJB jobs in a virtualenv
.PHONY: help clean help test
.DEFAULT_GOAL := help
@@ -25,6 +24,9 @@
TOP ?= .
MAKEDIR ?= $(TOP)/makefiles
+# ONF_MAKEDIR ?= $(HOME)/repo/onf-make/makefiles
+# include $(ONF_MAKEDIR)/include.mk
+
##--------------------##
##---] INCLUDES [---##
##--------------------##
@@ -32,6 +34,6 @@
include $(MAKEDIR)/include.mk # top level include
## Display make help text late
-include $(ONF_MAKE)/help/trailer.mk
+include $(ONF_MAKEDIR)/help/trailer.mk
# [EOF]