|
@@ -582,15 +582,16 @@ $(INSTALL_DOC_TARGETS):
|
|
|
#
|
|
|
config-clean:
|
|
|
$(call QUIET_CLEAN, config)
|
|
|
- $(Q)$(MAKE) -C $(srctree)/tools/build/feature/ clean >/dev/null
|
|
|
+ $(Q)$(MAKE) -C $(srctree)/tools/build/feature/ $(if $(OUTPUT),OUTPUT=$(OUTPUT)feature/,) clean >/dev/null
|
|
|
|
|
|
clean: $(LIBTRACEEVENT)-clean $(LIBAPI)-clean $(LIBBPF)-clean config-clean
|
|
|
$(call QUIET_CLEAN, core-objs) $(RM) $(LIB_FILE) $(OUTPUT)perf-archive $(OUTPUT)perf-with-kcore $(LANG_BINDINGS)
|
|
|
- $(Q)find . -name '*.o' -delete -o -name '\.*.cmd' -delete -o -name '\.*.d' -delete
|
|
|
+ $(Q)find $(if $(OUTPUT),$(OUTPUT),.) -name '*.o' -delete -o -name '\.*.cmd' -delete -o -name '\.*.d' -delete
|
|
|
$(Q)$(RM) $(OUTPUT).config-detected
|
|
|
$(call QUIET_CLEAN, core-progs) $(RM) $(ALL_PROGRAMS) perf perf-read-vdso32 perf-read-vdsox32
|
|
|
$(call QUIET_CLEAN, core-gen) $(RM) *.spec *.pyc *.pyo */*.pyc */*.pyo $(OUTPUT)common-cmds.h TAGS tags cscope* $(OUTPUT)PERF-VERSION-FILE $(OUTPUT)FEATURE-DUMP $(OUTPUT)util/*-bison* $(OUTPUT)util/*-flex* \
|
|
|
- $(OUTPUT)util/intel-pt-decoder/inat-tables.c
|
|
|
+ $(OUTPUT)util/intel-pt-decoder/inat-tables.c $(OUTPUT)fixdep \
|
|
|
+ $(OUTPUT)tests/llvm-src-{base,kbuild,prologue}.c
|
|
|
$(QUIET_SUBDIR0)Documentation $(QUIET_SUBDIR1) clean
|
|
|
$(python-clean)
|
|
|
|