Date: Wed, 07 Sep 2005 15:21:04 +0200 From: Nils Vogels <nivo+sender+6075ff@yuckfou.org> To: freebsd-questions@freebsd.org Subject: Makefile woes Message-ID: <431EE940.30604@yuckfou.org>
index | next in thread | raw e-mail
Hi there !
I'm trying to write a Makefile and it's my first time writing a bit more
complex one .. I seem to be stuck and examples currently are not very
helpful, so I thought I'd try here:
What I am trying to do is differ the way of building depending if a
variable has been defined, my current Makefile looks like this:
build_1:
@cd /build/dir && make OPTION=set
build_2:
@cd /build/dir && make
build:
.if defined(WANT_OPTION)
HAS_OPTION?=1
${MAKE} build_1
.else
HAS_OPTION?=0
${MAKE} build_2 <-- error in this line
.endif
Whenever I run "make build" I get:
"Makefile", line xx: Need an operator
make: fatal errors encountered -- cannot continue
The error seems to occur in the indicated line ${MAKE} build_2, but I am
at a complete loss what I am doing wrong.. Help! :)
I am running RELENG_5_4 and the make that comes with it ..
Grts,
Nils
--
Simple guidelines to happiness:
Work like you don't need the money,
love like your heart has never been broken and
dance like no one can see you.
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?431EE940.30604>
