]> git.webhop.me Git - bs-cst-neutrino-hd.git/commitdiff
add target: print-targets
authorMarkham <markham001@gmx.de>
Tue, 31 Oct 2017 19:34:18 +0000 (20:34 +0100)
committerMarkham <markham001@gmx.de>
Tue, 31 Oct 2017 19:34:18 +0000 (20:34 +0100)
Makefile

index b426b8415b2f9e91ac6717d42b827c4c88ae2349..5d1696f19c0c52a8b1da39304fd3d87349ada18e 100755 (executable)
--- a/Makefile
+++ b/Makefile
@@ -60,6 +60,7 @@ printenv:
        @echo "    * make bootloader                     - builds bootloader"
        @echo "    * make cskernel                       - builds the CST kernel"
        @echo "    * make cskernel-image                 - builds the CST kernel-image for u-boot"
+       @echo "    * make print-targets                  - print out all available targets"
        @echo ""
        @echo "    ...and some more make targets:"
        @echo "    * make wittinobi-init                 - builds prerequisites and bootstrap"
@@ -116,6 +117,12 @@ all:
        @echo " ****************************************************************************** "
        @echo ""
 
+# print all present targets...
+print-targets:
+       @sed -n 's/^\$$.D.\/\(.*\):.*/\1/p; s/^\([a-z].*\):\( \|$$\).*/\1/p;' \
+               `ls -1 make/*.mk|grep -v make/buildenv.mk|grep -v make/neutrino-release.mk|grep -v make/enigma2-release.mk` | \
+               sort -u | fold -s -w 65
+
 # wittinobi
 wittinobi-init:
        $(MAKE) prerequisites bootstrap post-customize