help-make
[Top][All Lists]
Advanced

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

ifeq and logical OR?


From: Jeffrey Walton
Subject: ifeq and logical OR?
Date: Sat, 3 Mar 2012 22:26:33 -0500

Hi All,

I currently have the following:

IS_BSD = $(shell $(UNAME) 2>&1 | $(EGREP) -i -c '(openbsd|freebsd|netbsd)')
IS_DARWIN = $(shell $(UNAME) 2>&1 | $(EGREP) -i -c 'darwin')
...

# iconvert library. For GNU Linux, its included in glib
ifeq ($(IS_BSD),1)
  LDLIBS += -liconv
endif

ifeq ($(IS_DARWIN),1)
  LDLIBS += -liconv
endif

Is there a way to combine the tests using an OR? I don't recall seing
it in Stallman's GNU Make book (and the book is not handy at the
moment).

Jeff



reply via email to

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