From a67076694377c54ac8cf8cc8285d9419a89a9994 Mon Sep 17 00:00:00 2001
From: Kaspar Schleiser <kaspar@schleiser.de>
Date: Fri, 21 Aug 2015 16:10:57 +0200
Subject: [PATCH] make: add info-modules make target

---
 Makefile.include | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Makefile.include b/Makefile.include
index 750cad7bce..59b709af41 100644
--- a/Makefile.include
+++ b/Makefile.include
@@ -191,7 +191,7 @@ BASELIBS += $(BINDIR)$(BOARD)_base.a
 BASELIBS += $(BINDIR)${APPLICATION}.a
 BASELIBS += $(USEPKG:%=${BINDIR}%.a)
 
-.PHONY: all clean flash term doc debug debug-server reset objdump help
+.PHONY: all clean flash term doc debug debug-server reset objdump help info-modules
 .PHONY: ..in-docker-container
 
 ELFFILE ?= $(BINDIR)$(APPLICATION).elf
@@ -426,6 +426,9 @@ endif
 help:
 	@$(MAKE) -qp | sed -ne 's/\(^[a-z][a-z_-]*\):.*/\1/p' | sort | uniq
 
+info-modules:
+	@for i in $(sort $(USEMODULE)); do echo $$i; done
+
 ifneq (,$(filter iotlab-m3 wsn430-v1_3b wsn430-v1_4,$(BOARD)))
   include $(RIOTBASE)/dist/testbed-support/Makefile.iotlab
 endif
-- 
GitLab