소스 검색

build: add list-targets make target

`make list-targets` can be used to discover the available targets in
scripts.
Matthias Schiffer 7 년 전
부모
커밋
134ddd411c
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      Makefile

+ 4 - 0
Makefile

@@ -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)
 
 
+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_PACKAGES :=