[GRASS-dev] lib/nviz/Makefile: Makefile:14: Extraneous text after
`else' directive
William Kyngesburye
woklist at kyngchaos.com
Mon Nov 24 10:10:42 EST 2008
On Nov 24, 2008, at 6:18 AM, Markus Neteler wrote:
> Hi,
>
> the lib/nviz/Makefile fails with
>
> [neteler at xblade14 nviz]$ make
> Makefile:14: Extraneous text after `else' directive
> Makefile:17: *** only one `else' per conditional. Stop.
>
> It reads:
>
> 7 ifeq ($(OPENGL_WINDOWS),1)
> 8 EXTRA_LIBS += $(OPENGLLIB) $(OPENGLULIB) -lgdi32
> 9 else ifeq ($(OPENGL_X11),1)
> 10 EXTRA_LIBS += $(XLIBPATH) $(OPENGLLIB) $(OPENGLULIB)
> 11 EXTRA_CFLAGS += $(XCFLAGS)
> 12 else
> 13 EXTRA_LIBS += $(OPENGLLIB) $(OPENGLULIB)
> 14 endif
>
> How to fix this?
>
> thanks
> Markus
Oh, I think I did that. Haven't had problems before. From the Gnu
make manual:
conditional-directive
text-if-one-is-true
else conditional-directive
text-if-true
else
text-if-false
endif
Are you using a non-Gnu make? How about:
ifeq ($(OPENGL_WINDOWS),1)
EXTRA_LIBS += $(OPENGLLIB) $(OPENGLULIB) -lgdi32
else
ifeq ($(OPENGL_X11),1)
EXTRA_LIBS += $(XLIBPATH) $(OPENGLLIB) $(OPENGLULIB)
EXTRA_CFLAGS += $(XCFLAGS)
else
EXTRA_LIBS += $(OPENGLLIB) $(OPENGLULIB)
endif
endif
-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/
The equator is so long, it could encircle the earth completely once.
More information about the grass-dev
mailing list