[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
elseif construct
From: |
Chad Loder |
Subject: |
elseif construct |
Date: |
Tue, 06 Nov 2001 15:13:22 -0800 |
Hello. GNU make doesn't seem to have an elseif construct.
Is there any syntactic sugar that lets you test a series
of exclusive conditions without having many nested levels
of if/else/if/endif/endif ?
e.g., the nesting structure below is undesirable, especially
with lots of potential platforms:
ifdef WIN32
OSMAKEFILE:=$(MAKE_ROOT)/win32.mk
else
ifdef LINUX
OSMAKEFILE:=$(MAKE_ROOT)/linux.mk
endif
endif
Thanks,
Chad Loder
- elseif construct,
Chad Loder <=