Minor edits to support repo:onf-make
Makefile
--------
o Remove Makefile inlined include help/trailer.mk, lib sourced.
lf/include.mk
-------------
o Mark git-submodule targets as .PHONY so they always process.
o Use library $(banner) macro to annouce target for logging.
o Add help text for two git-submodule targets.
requirements.txt
----------------
o Add bashate to the list of python modules to install.
Change-Id: If35c7aac9e0deb25c0fc0ba8b158aafe78d6754f
diff --git a/lf/include.mk b/lf/include.mk
index 7034ea3..ebaacde 100644
--- a/lf/include.mk
+++ b/lf/include.mk
@@ -61,7 +61,8 @@
## version available from the remote repository. Subsequently
## a checkin will be needed to make the submodule update permanent.
## -----------------------------------------------------------------------
-update-submodules:
+.PHONY: update-git-submodules
+update-git-submodules:
git submodule foreach git pull
## -----------------------------------------------------------------------
@@ -72,12 +73,24 @@
## repo:onf-make submodule, this target/dependency will initialize
## and checkout all submodules the current repository depends on.
## -----------------------------------------------------------------------
+.PHONY: git-submodules
+git-submodules : $(onf-mk-lib)/include.mk
+
$(onf-mk-lib)/include.mk:
- @echo
- @echo "** Checkout git submodule(s)"
- @echo "** -----------------------------------------------------------------------"
+
+ $(call banner-enter,(Checkout git submodules))
+
git submodule update --init --recursive
- @echo "** -----------------------------------------------------------------------"
+
+ $(call banner-leave,(Checkout git submodules))
+
+## -----------------------------------------------------------------------
+## -----------------------------------------------------------------------
+help-git :
+ @printf ' %-33.33s %s\n' 'git-submodules' \
+ 'Init and recursive checkout of git submodule(s)'
+ @printf ' %-33.33s %s\n' 'update-git-submodules' \
+ 'Update git submodule(s) to the latest version'
$(if $(DEBUG),$(warning LEAVE))