Clean intermediate files and debug info for each target

By replacing `ALLOBJS` suffix with intermediate file suffixes instead
of roughly removing by wildcards.  Made `cleanlibs` append `.dSYM`
suffix for each word in `TARGET_SO`, not the end of the entire list.
This commit is contained in:
Nobuyoshi Nakada 2024-03-09 01:44:54 +09:00
parent 8e3cb69a83
commit 0fb39ab1b9
No known key found for this signature in database
GPG key ID: 3582D74E1FEE4465
7 changed files with 18 additions and 7 deletions

View file

@ -469,6 +469,10 @@ benchmark/%: miniruby$(EXEEXT) update-benchmark-driver PHONY
--executables="built-ruby::$(BENCH_RUBY) --disable-gem" \
$(srcdir)/$@ $(BENCH_OPTS) $(OPTS)
clean-local:: TARGET_SO = $(PROGRAM) $(WPROGRAM) $(LIBRUBY_SO) $(STATIC_RUBY) miniruby goruby
clean-local::
-$(Q)$(RMALL) $(cleanlibs)
clean-srcs-ext::
$(Q)$(RM) $(patsubst $(srcdir)/%,%,$(EXT_SRCS))