Skip to content

Commit e9c6ebe

Browse files
phirsovthiagomacieira
authored andcommitted
eliminating misleading messages in case .config file not yet created
Signed-off-by: phirsov <[email protected]>
1 parent 1db99f9 commit e9c6ebe

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ endif
8181

8282
-include .config
8383

84+
ifeq ($(wildcard .config),)
85+
$(info .config file not yet created)
86+
endif
87+
8488
ifeq ($(freestanding-pass),1)
8589
TINYCBOR_SOURCES = $(TINYCBOR_FREESTANDING_SOURCES)
8690
else
@@ -96,7 +100,9 @@ TINYCBOR_SOURCES = \
96100
ifeq ($(open_memstream-pass),)
97101
ifeq ($(funopen-pass)$(fopencookie-pass),)
98102
CFLAGS += -DWITHOUT_OPEN_MEMSTREAM
99-
$(warning warning: funopen and fopencookie unavailable, open_memstream can not be implemented and conversion to JSON will not work properly!)
103+
ifeq ($(wildcard .config),.config)
104+
$(warning warning: funopen and fopencookie unavailable, open_memstream can not be implemented and conversion to JSON will not work properly!)
105+
endif
100106
else
101107
TINYCBOR_SOURCES += src/open_memstream.c
102108
endif

0 commit comments

Comments
 (0)