From: Markham Date: Tue, 31 Oct 2017 19:34:18 +0000 (+0100) Subject: add target: print-targets X-Git-Url: https://git.webhop.me/?a=commitdiff_plain;h=f16e789246a53fe3cc1997cfe924db85d520372e;p=bs-cst-neutrino-hd.git add target: print-targets --- diff --git a/Makefile b/Makefile index b426b84..5d1696f 100755 --- 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