--- In [email protected], "John Matthews" <jm5...@...> wrote: > > --- In [email protected], "Tyler Littlefield" <tyler@> wrote: > > > > I'm building modules in separate directories, so I have something like: > > O_FILES= module1/file1.o, MODULE2/file2.o > > then I have: > > O_FILES_A = file1.o file2.o > > for the linking. > > Is there a way I can do this with one line? > > There's the notdir function eg. > > O_FILES_A = $(notdir $(O_FILES))
I keep a copy of the Gnu make manual PDF on my PC: http://www.gnu.org/software/make/manual/
