From 0d47b5bbbcda1d3e8fd4e94a00f87b8ea033a7c7 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 3 Mar 2009 13:12:06 +0000 Subject: make distclean always works now removed --ld-kdr from Makefile --- src/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index cde77c6..be5ec6e 100644 --- a/src/Makefile +++ b/src/Makefile @@ -29,7 +29,9 @@ ## along with anytun. If not, see . ## +ifneq ($(MAKECMDGOALS),distclean) include include.mk +endif OBJS := tunDevice.o \ packetSource.o \ @@ -54,7 +56,7 @@ OBJS := tunDevice.o \ anytunError.o \ options.o \ seqWindow.o \ - routingTreeNode.o \ + routingTreeNode.o SYNCOBJS := syncServer.o \ syncClient.o \ @@ -114,8 +116,9 @@ all: $(EXECUTABLE) #libAnysync.a sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ rm -f $@.$$$$; echo '(re)building $@' +ifneq ($(MAKECMDGOALS),distclean) -include $(SRCS:%.cpp=%.d) $(SYNCSRCS:%.cpp=%.d) $(ANYCTRSRCS:%.cpp=%.d) $(ANYCONFSRCS:%.cpp=%.d) $(EXESRCS:%.cpp=%.d) - +endif strip: $(EXECUTABLE) strip -s $(EXECUTABLE) -- cgit v1.2.3