--- Begin Message ---
Subject: |
Help about "Include" in Makefile |
Date: |
Wed, 27 Jun 2007 00:15:48 -0700 |
User-agent: |
G2/1.0 |
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!
--- End Message ---
--- Begin Message ---
Subject: |
confirm 2c7db6d3787e24d26b3b061fc54611b6d18132f0 |
If you reply to this message, keeping the Subject: header intact,
Mailman will discard the held message. Do this if the message is
spam. If you reply to this message and include an Approved: header
with the list password in it, the message will be approved for posting
to the list. The Approved: header can also appear in the first line
of the body of the reply.
--- End Message ---