Ive searched google for this answer as well as the gnu
makefile
documentation page and I cant seem to find what Im looking
for.
Im using gmake on solaris to build a project. I know that
this would
work for a single file:
file.o: file.cpp
CC -c file.cpp -o file.o
But what I want to do is more general, since I have a list
of OBJECTS
I want OBJECTS to somehow check all their associated .cpp
files
and rebuild if one of them has been changed without having
to
list each file seperately as above.
something like:
$(OBJECTS): ($SOURCES)
CC -c $*.cpp -o $
How do I make this work?
Re: Makefile timestamp rebuild files,
howto?
United States
2008-03-14 17:52:31
Sorry for the wasted bandwidth. I kept searching on make
depend*
and since makedepend exists, I never saw anything related.
After
getting
makedepend to 'work', it seems odd that make hasnt
integrated in this
feature over the years and made it easier?