help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Embedding a carriage return in $(error)?


From: Brian Dessent
Subject: Re: Embedding a carriage return in $(error)?
Date: Mon, 16 Apr 2007 21:53:56 -0700

Mike Shal wrote:

> One way would be to use define/endef to create a variable, since that
> preserves newlines:
> 
> define err
> No object directory found -- possible configuration problem?
> I looked for : $(OBJDIRS)
> endef
> 
> ifeq (,$(OBJDIR))
>    $(error $(err))
> endif

Yeah, that or:

define nl


endef

...

ifeq (,$(OBJDIR))
  $(error No object directory found -- possible config problem? $(nl)\
  I looked for : $(OBJDIRS))
endif

Brian




reply via email to

[Prev in Thread] Current Thread [Next in Thread]