[GRASS-dev] lib/nviz/Makefile: Makefile:14: Extraneous text after
`else' directive
Glynn Clements
glynn at gclements.plus.com
Mon Nov 24 17:20:01 EST 2008
Markus Neteler wrote:
> >> 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?
>
> I am using GNU make on the grass.osgeo.org server (which I currently restore):
>
> [neteler at xblade14 grass6_svn_head_progmanual]$ rpm -qil make-3.80-7
Looking at the ChangeLog and NEWS files, this feature appears to have
been introduced in 3.81:
* The "else" conditional line can now be followed by any other valid
conditional on the same line: this does not increase the depth of the
conditional nesting, so only one "endif" is required to close the
conditional.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list