Skip to content

Commit c922ad2

Browse files
committed
Check SKIP_APPLICATION exists before reading from it. Assume empty contents
1 parent be07821 commit c922ad2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

system/doc/top/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ include $(ERL_TOP)/make/$(TARGET)/otp.mk
2828
# ----------------------------------------------------
2929
APPLICATION=Erlang/OTP
3030
VSN=$(shell cat $(ERL_TOP)/OTP_VERSION)
31-
SKIP_APPLICATIONS=$(shell cat $(ERL_TOP)/lib/SKIP-APPLICATIONS)
31+
32+
SKIP_FILE := $(wildcard $(ERL_TOP)/lib/SKIP-APPLICATIONS)
33+
SKIP_APPLICATIONS := $(if $(SKIP_FILE),$(shell cat $(SKIP_FILE)),)
34+
3235
APP_DIR=../../../lib/erl_interface
3336
INDEX_DIR=.
3437
HTMLDIR=../../../doc

0 commit comments

Comments
 (0)