소스 검색

build: make GLUON_FEATURES error handling compatible with older Make versions

.SHELLSTATUS was not available before Make 4.2.
Matthias Schiffer 6 년 전
부모
커밋
b4caa7f766
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Makefile

+ 2 - 2
Makefile

@@ -77,8 +77,8 @@ list-targets: FORCE
 
 GLUON_DEFAULT_PACKAGES := -odhcpd -ppp -ppp-mod-pppoe -wpad-mini gluon-core ip6tables hostapd-mini
 
-GLUON_FEATURE_PACKAGES := $(shell scripts/features.sh '$(GLUON_FEATURES)')
-ifneq ($(.SHELLSTATUS),0)
+GLUON_FEATURE_PACKAGES := $(shell scripts/features.sh '$(GLUON_FEATURES)' || echo '__ERROR__')
+ifneq ($(filter __ERROR__,$(GLUON_FEATURE_PACKAGES)),)
 $(error Error while evaluating GLUON_FEATURES)
 endif