[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Help about "Include" in Makefile
From: |
blippman |
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!
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Help about "Include" in Makefile,
blippman <=