Bug 434192 - `make clean` removes source .s files on some architectures (when not using an objdir), r=bsmedberg
authorMike Hommey <mh+mozilla@glandium.org>
Tue, 19 Aug 2008 11:14:02 -0400
changeset 17042 5f9f6eb0060153f8bf679e196956b5cc9167cea5
parent 17041 443771a62859b7892c93655ab49b3f31f1b5191f
child 17043 dd6d74c34c8ffa887a7ac909a973a57e9d242652
push idunknown
push userunknown
push dateunknown
reviewersbsmedberg
bugs434192
milestone1.9.1a2pre
Bug 434192 - `make clean` removes source .s files on some architectures (when not using an objdir), r=bsmedberg
config/rules.mk
--- a/config/rules.mk
+++ b/config/rules.mk
@@ -303,17 +303,17 @@ ifndef NO_GEN_XPT
 MDDEPFILES		+= $(addprefix $(MDDEPDIR)/,$(XPIDLSRCS:.idl=.xpt)) \
 			   $(addprefix $(MDDEPDIR)/,$(SDK_XPIDLSRCS:.idl=.xpt))
 endif
 endif
 endif
 
 ALL_TRASH = \
 	$(GARBAGE) $(TARGETS) $(OBJS) $(PROGOBJS) LOGS TAGS a.out \
-	$(OBJS:.$(OBJ_SUFFIX)=.s) $(OBJS:.$(OBJ_SUFFIX)=.ii) \
+	$(filter-out $(ASFILES),$(OBJS:.$(OBJ_SUFFIX)=.s)) $(OBJS:.$(OBJ_SUFFIX)=.ii) \
 	$(OBJS:.$(OBJ_SUFFIX)=.i) \
 	$(HOST_PROGOBJS) $(HOST_OBJS) $(IMPORT_LIBRARY) $(DEF_FILE)\
 	$(EXE_DEF_FILE) so_locations _gen _stubs $(wildcard *.res) $(wildcard *.RES) \
 	$(wildcard *.pdb) $(CODFILE) $(MAPFILE) $(IMPORT_LIBRARY) \
 	$(SHARED_LIBRARY:$(DLL_SUFFIX)=.exp) $(wildcard *.ilk) \
 	$(PROGRAM:$(BIN_SUFFIX)=.exp) $(SIMPLE_PROGRAMS:$(BIN_SUFFIX)=.exp) \
 	$(PROGRAM:$(BIN_SUFFIX)=.lib) $(SIMPLE_PROGRAMS:$(BIN_SUFFIX)=.lib) \
 	$(SIMPLE_PROGRAMS:$(BIN_SUFFIX)=.$(OBJ_SUFFIX)) \