build: add list-targets make target

`make list-targets` can be used to discover the available targets in
scripts.
This commit is contained in:
Matthias Schiffer 2017-02-16 18:36:20 +01:00
parent 43f32e3c3b
commit 134ddd411c
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

View File

@ -70,6 +70,10 @@ CheckTarget := [ '$(LEDE_TARGET)' ] \
CheckExternal := test -d lede || (echo 'You don'"'"'t seem to have obtained the external repositories needed by Gluon; please call `make update` first!'; false) CheckExternal := test -d lede || (echo 'You don'"'"'t seem to have obtained the external repositories needed by Gluon; please call `make update` first!'; false)
list-targets: FORCE
@$(foreach target,$(GLUON_TARGETS),echo '$(target)';)
GLUON_DEFAULT_PACKAGES := -odhcpd -ppp -ppp-mod-pppoe -wpad-mini gluon-core ip6tables hostapd-mini GLUON_DEFAULT_PACKAGES := -odhcpd -ppp -ppp-mod-pppoe -wpad-mini gluon-core ip6tables hostapd-mini
GLUON_PACKAGES := GLUON_PACKAGES :=