Only clean up logfiles that we know we created.
[riscv-tests.git] / debug / Makefile
index 1ea5752fb969ed7013678490943332f35cf5b407..760a57b8990e77c81e6f00750509d063d088c4ce 100644 (file)
@@ -12,8 +12,12 @@ pylint:
        pylint --rcfile=pylint.rc *.py
 
 %.log:
-       $(GDBSERVER_PY) --isolate --$(subst .log,,$@) --sim_cmd $(RISCV)/bin/$(RISCV_SIM) \
-           > $@ 2>&1 || (sed s/^/$@:\ / $@ && false)
+       $(GDBSERVER_PY) \
+               --isolate \
+               targets/RISC-V/$(subst .log,.py,$@) \
+               --sim_cmd $(RISCV)/bin/$(RISCV_SIM) \
+               --server_cmd $(RISCV)/bin/openocd \
+           | tee $@ 2>&1 || (sed s/^/$@:\ / $@ && false)
 
 clean:
-       rm -f *.log *.pyc
+       rm -f spike32.log spike64.log *.pyc