← Back to team overview

nagios-charmers team mailing list archive

[Merge] ~peter-sabaini/hw-health-charm:add-submodules-target into hw-health-charm:master

 

Peter Sabaini has proposed merging ~peter-sabaini/hw-health-charm:add-submodules-target into hw-health-charm:master.

Requested reviews:
  Nagios Charm developers (nagios-charmers)

For more details, see:
https://code.launchpad.net/~peter-sabaini/hw-health-charm/+git/hw-health-charm/+merge/376190
-- 
Your team Nagios Charm developers is requested to review the proposed merge of ~peter-sabaini/hw-health-charm:add-submodules-target into hw-health-charm:master.
diff --git a/Makefile b/Makefile
index 8e68711..70f7666 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,7 @@ help:
 	@echo "This project supports the following targets"
 	@echo ""
 	@echo " make help - show this text"
+	@echo " make submodules - make sure that the submodules are up-to-date"
 	@echo " make lint - use pre-commit to ensure consistent layout"
 	@echo " make test - run the functional test, unittests and lint"
 	@echo " make unittest - run the tests defined in the unittest subdirectory"
@@ -16,6 +17,10 @@ help:
 	@echo " make clean - remove unneeded files"
 	@echo ""
 
+submodules:
+	@echo "Cloning submodules"
+	@git submodule update --init --recursive
+
 lint:
 	@echo "Running flake8"
 	cd src && tox -e pep8
@@ -66,4 +71,4 @@ clean:
 		rm -rf $$dir ; done
 
 # The targets below don't depend on a file
-.PHONY: lint test unittest build release clean help
+.PHONY: lint test unittest build release clean help submodules

Follow ups