The "make" utility - do the conditiional macros really work?

Hello,

I've tried to use conditional macros in the makefile like this

SETTINGS = stub

target1 := SETTINGS = somefile

include ${SETTINGS}

target1: ....

No way - when I call the make with "make target1" it stiil includes the "stub" file, NOT the "somefile". Is anybody using this feature? If yes, what did I do wrong?

My OS is Solaris 5.8

My make is /usr/ccs/bin/make

Doc about this make is:

http://docs.sun.com/app/docs/doc/806-0624/6j9vek5ac?a=view

Thank you,

Alex

[545 byte] By [yakovlev] at [2007-11-26 11:08:17]
# 1
I doubt if you can use the conditional stuff to vary include files.I suspect it does a pass at the beginning to do the including and get the "complete" filebefore it does any serious processing of the make rules...
robertcohen at 2007-7-7 3:22:40 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...