From 97c12c5f692d176278dd6445a751788568b54e4d Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 17 May 2022 23:55:32 +0900 Subject: [PATCH] Clean intermediate object files --- template/Makefile.in | 1 + 1 file changed, 1 insertion(+) diff --git a/template/Makefile.in b/template/Makefile.in index 28504d5326..acda941639 100644 --- a/template/Makefile.in +++ b/template/Makefile.in @@ -311,6 +311,7 @@ $(LIBRUBY_A): $(ECHO0) 'merging $(YJIT_LIBS) into $@' && \ $(RMALL) libyjit/ && \ $(MAKEDIRS) libyjit/ && \ + trap "$(RMALL) libyjit/" 0 && \ (cd libyjit/ && $(AR) -x ../$(YJIT_LIBS)) && \ : "$(AR) $(ARFLAGS) $@ libyjit/*.$(OBJEXT)" && \ find libyjit/ -name '*.$(OBJEXT)' -exec $(AR) $(ARFLAGS) $@ '{}' '+' ; \