Path: utzoo!utgpu!attcan!uunet!pyrdc!eliot!janm From: janm@eliot.UUCP (Jan Morales) Newsgroups: comp.unix.questions Subject: Ultrix 1.2 make suffix assumptions Message-ID: <248@eliot.UUCP> Date: 9 Aug 88 19:44:45 GMT Reply-To: janm@eliot.UUCP (Jan Morales) Organization: Unitech Software, Inc., Reston, VA Lines: 42 Let's say I have a file called "foo.c" that compiles to "foo". When I worked on a System V machine, I was able to type make foo and make would know to run cc -O foo.c -o foo to produce "foo". Now I'm working on a MicroVAX II running Ultrix 1.2 and when I say make foo it says Make: Don't know how to make foo. Stop. It turns out that make is assuming that executables' names end in ".out" rather than the name of the source file minus the ".c" or whatever suffix. In other words, if I type make foo.out it'll run cc foo.c -o foo.out to produce "foo.out". The default prerequisite suffixes are: .SUFFIXES: .out .o .c .e .r .f .y .l .s .p My question is how can I change ".SUFFIXES" to include the case of no suffix just before ".o"? I assume the answer, if any, lies in changing ".SUFFIXES". I know it's no big deal; I'm asking mainly out of curiosity. Thanks in advance. Jan -- --------------------------------------------------------------------------- Jan Morales, Unitech Software, Inc., (703) 264-3301, uunet!pyrdc!eliot!janm