Conditionals in Makefiles
Ralph Finch
rfinch at caldwr.UUCP
Wed May 17 03:19:48 AEST 1989
A while ago I had a very elementary question about makefiles, which a
number of people were kind enough to respond to. A big thanks to you,
and now another makefile question.
I want to conditionally use 1 of 2 different libraries, depending upon
a macro set in the command line:
make type=x
-or-
make type=y
How can the makefile conditionally use a different library, depending
upon what the macro 'type' equals? If x or y were targets, it would
be so:
x := LIBRARY = lib1
y := LIBRARY = lib2
but I am using targets for something else.
Thanks,
--
Ralph Finch
...ucbvax!ucdavis!caldwr!rfinch
More information about the Comp.unix.questions
mailing list