Re: make Q
Tom Browder <[email protected]> Mon, 9 Mar 2009 17:59:08 -0500
| Newsgroups | gmane.comp.gnu.utils |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Mar 9, 2009 at 1:02 PM, Aaron Gray <[email protected]> wrote: ... > is there anyway I can combine these commands :- > ifeq ( $(OS), Cygwin) > X > else > ifeq ( $(OS), MingW) > X > else ... > so I only need to write X once ? Aaron, try this: SPECOS := MingW Cygwin ifeq ($(OS), $(findstring $(OS), $(SPECOS))) X else Y endif -Tom