Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!ucdavis!caldwr!rfinch From: rfinch@caldwr.UUCP (Ralph Finch) Newsgroups: comp.unix.questions Subject: Conditionals in Makefiles Keywords: makefile Message-ID: <493@caldwr.UUCP> Date: 16 May 89 17:19:48 GMT Distribution: usa Organization: California Department of Water Resources Lines: 27 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