Help about "Include" in Makefile

blippman <[email protected]>
Newsgroups gmane.comp.gnu.utils
Organization http://groups.google.com
Message-ID <[email protected]>
I have write a makefile like this:

OBJS = $(patsubst %.cpp ,%.o,$(CPP))
DEPS = $(patsubst %.cpp ,%.d,$(CPP))

all : $(OBJS) $(DEPS)

%.o : %.cpp
...

%.d : %.cpp
...

-include $(DEPS)

clean:
    rm -f $(OBJS)
    rm -f $(DEPS)

we do make it will first generate the depend files (.d files);

but when i do make clean, it also generate depend file before doing
clean. what can i do to avoid this uncessary

operation!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.