From 07f0e6be943ecb10e3a939a6bcb1541132152877 Mon Sep 17 00:00:00 2001 From: Palmer Dabbelt Date: Thu, 12 Nov 2015 00:41:55 -0800 Subject: [PATCH] Don't re-generate the .d files on "make clean" --- emulator/Makefile | 2 ++ vsim/Makefile | 2 ++ 2 files changed, 4 insertions(+) diff --git a/emulator/Makefile b/emulator/Makefile index dcc9b393..9aee51fd 100644 --- a/emulator/Makefile +++ b/emulator/Makefile @@ -70,7 +70,9 @@ test: # Run assembly tests and benchmarks #-------------------------------------------------------------------- +ifneq ($(MAKECMDGOALS),clean) -include $(generated_dir)/$(MODEL).$(CONFIG).d +endif $(output_dir)/%.run: $(output_dir)/%.hex emulator-$(MODEL)-$(CONFIG) ./$(emu) +dramsim +max-cycles=$(timeout_cycles) +loadmem=$< none 2> /dev/null 2> $@ && [ $$PIPESTATUS -eq 0 ] diff --git a/vsim/Makefile b/vsim/Makefile index 84024df1..956d1ca4 100644 --- a/vsim/Makefile +++ b/vsim/Makefile @@ -21,7 +21,9 @@ TB ?= rocketTestHarness include $(base_dir)/Makefrag include $(sim_dir)/Makefrag +ifneq ($(MAKECMDGOALS),clean) -include $(generated_dir)/$(MODEL).$(CONFIG).d +endif include $(base_dir)/vsim/Makefrag-verilog all: $(simv)