From a15e6df2bd5b3a305fa3933a85321cd7f16e36a4 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 1 Nov 2002 20:28:51 +0000 Subject: improved gcc build rule to avoid problems when files are removed from the repository, and to make it less likely that aborting a build leaves bad .d2 files around (thanks Willem!) svn-id: r5369 --- Makefile.common | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Makefile.common') diff --git a/Makefile.common b/Makefile.common index 4908c32a09..1621c0b6c1 100644 --- a/Makefile.common +++ b/Makefile.common @@ -119,10 +119,7 @@ DEPFILES = $(wildcard $(patsubst %,%/$(DEPDIR)/*.d,$(MODULES))) .cpp.o: $(MKDIR) $(*D)/$(DEPDIR) - $(CXX) -Wp,-MMD,"$(*D)/$(DEPDIR)/$(*F).d2" $(CFLAGS) $(CPPFLAGS) -c $(<) -o $*.o - $(ECHO) "$(*D)/" > $(*D)/$(DEPDIR)/$(*F).d - $(CAT) "$(*D)/$(DEPDIR)/$(*F).d2" >> "$(*D)/$(DEPDIR)/$(*F).d" - $(RM) "$(*D)/$(DEPDIR)/$(*F).d2" + $(CXX) -Wp,-MMD,"$(*D)/$(DEPDIR)/$(*F).d",-MQ,"$@",-MP $(CFLAGS) $(CPPFLAGS) -c $(<) -o $*.o -include $(DEPFILES) /dev/null -- cgit v1.2.3