diff options
author | Andrew Waterman <andrew@sifive.com> | 2017-01-04 11:33:09 -0800 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2017-01-04 11:37:02 -0800 |
commit | 46eced18f0e0808e778deeb21f2db4ae0e546395 (patch) | |
tree | cbb763294a256c83401a8bd9a8ff4f08eea011a8 | |
parent | 876d1055bfc238c6b23da89f24b8bdefdfdbc957 (diff) | |
download | riscv-tests-46eced18f0e0808e778deeb21f2db4ae0e546395.zip riscv-tests-46eced18f0e0808e778deeb21f2db4ae0e546395.tar.gz riscv-tests-46eced18f0e0808e778deeb21f2db4ae0e546395.tar.bz2 |
"make clean" shouldn't fail if "make" wasn't first run
-rw-r--r-- | Makefile.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in index 5afa084..c073655 100644 --- a/Makefile.in +++ b/Makefile.in @@ -27,9 +27,9 @@ debug-check: $(MAKE) -C debug -f $(debug_src_dir)/Makefile src_dir=$(debug_src_dir) XLEN=$(XLEN) clean: - $(MAKE) -C isa -f $(isa_src_dir)/Makefile src_dir=$(isa_src_dir) clean - $(MAKE) -C benchmarks -f $(bmarkdir)/Makefile src_dir=$(bmarkdir) clean - $(MAKE) -C debug -f $(bmarkdir)/Makefile src_dir=$(debug_src_dir) clean + [ ! -d isa ] || $(MAKE) -C isa -f $(isa_src_dir)/Makefile src_dir=$(isa_src_dir) clean + [ ! -d benchmarks ] || $(MAKE) -C benchmarks -f $(bmarkdir)/Makefile src_dir=$(bmarkdir) clean + [ ! -d debug ] || $(MAKE) -C debug -f $(debug_src_dir)/Makefile src_dir=$(debug_src_dir) clean .PHONY: benchmarks isa clean |