Re: $(info text…) and missing endif

Eli Zaretskii <[email protected]>
Newsgroups gmane.comp.gnu.make.general
Message-ID <[email protected]>
> From: Jeffrey Walton <[email protected]>
> Date: Sat, 15 Apr 2023 17:40:27 -0400
> 
> ifeq ($(IS_DARWIN)$(CLANG_COMPILER),11)
>   ifeq ($(findstring -stdlib=libc++,$(CRYPTOPP_CXXFLAGS)$(CXXFLAGS)),)
>     $(info )
>     $(info INFO: Crypto++ was built without LLVM's libc++. If you are
> using the library)
>     $(info INFO: with modern Xcode, then you should add -stdlib=libc++
> to CXXFLAGS. It is)
>     $(info INFO: already present in the makefile, and you only need to
> uncomment it.)
>     $(info )
>   endif
> endif
> 
> In my text editor (Kate), the two closing endif's are colored
> differently, like they are not part of reserved words. I checked
> https://www.gnu.org/software/make/manual/make.html#Make-Control-Functions
> , but I don't see what is wrong with the text.
> 
> Trial and error, by commenting out this line, the structure is restored in Kate:
> 
>     #$(info INFO: Crypto++ was built without LLVM's libc++. If you are
> using the library)
> 
> What is wrong with the use of $(info text…) in this case?

It has "if" as part of the text.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.