From 108a9133d0750eb963c99e02095358875f6105b5 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Tue, 10 Mar 2026 10:01:23 +0100 Subject: [PATCH] Move clean for tests in proper Makefile --- Makefile | 10 +--------- tests/Makefile | 10 ++++++++++ 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 01b9fbdc4..104a535a6 100644 --- a/Makefile +++ b/Makefile @@ -1091,16 +1091,8 @@ clean: clean-py clean-unit-test rm -f $(OBJS) $(GENFILES) $(TARGETS) $(EXTRA_TARGETS) $(EXTRA_OBJS) rm -f kernel/version_*.o kernel/version_*.cc rm -f libs/*/*.d frontends/*/*.d passes/*/*.d backends/*/*.d kernel/*.d techlibs/*/*.d - rm -rf tests/asicworld/*.out tests/asicworld/*.log - rm -rf tests/hana/*.out tests/hana/*.log - rm -rf tests/simple/*.out tests/simple/*.log - rm -rf tests/memories/*.out tests/memories/*.log tests/memories/*.dmp - rm -rf tests/sat/*.log tests/techmap/*.log tests/various/*.log - rm -rf tests/bram/temp tests/fsm/temp tests/realmath/temp tests/share/temp tests/smv/temp tests/various/temp rm -rf vloghtb/Makefile vloghtb/refdat vloghtb/rtl vloghtb/scripts vloghtb/spec vloghtb/check_yosys vloghtb/vloghammer_tb.tar.bz2 vloghtb/temp vloghtb/log_test_* - rm -f tests/svinterfaces/*.log_stdout tests/svinterfaces/*.log_stderr tests/svinterfaces/dut_result.txt tests/svinterfaces/reference_result.txt tests/svinterfaces/a.out tests/svinterfaces/*_syn.v tests/svinterfaces/*.diff - rm -f tests/tools/cmp_tbdata - rm -f $(addsuffix /run-test.mk,$(MK_TEST_DIRS)) + -$(MAKE) -C $(YOSYS_SRC)/tests clean -$(MAKE) -C $(YOSYS_SRC)/docs clean rm -rf docs/util/__pycache__ rm -f libyosys.so diff --git a/tests/Makefile b/tests/Makefile index 3ec125e48..7f4e0f739 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -103,3 +103,13 @@ endif endif @echo "" +clean: + rm -rf ./asicworld/*.out ./asicworld/*.log + rm -rf ./hana/*.out ./hana/*.log + rm -rf ./simple/*.out ./simple/*.log + rm -rf ./memories/*.out ./memories/*.log ./memories/*.dmp + rm -rf ./sat/*.log ./techmap/*.log ./various/*.log + rm -rf ./bram/temp ./fsm/temp ./realmath/temp ./share/temp ./smv/temp ./various/temp + rm -f ./svinterfaces/*.log_stdout ./svinterfaces/*.log_stderr ./svinterfaces/dut_result.txt ./svinterfaces/reference_result.txt ./svinterfaces/a.out ./svinterfaces/*_syn.v ./svinterfaces/*.diff + rm -f ./tools/cmp_tbdata + rm -f $(addsuffix /run-test.mk,$(MK_TEST_DIRS))