From 46eced18f0e0808e778deeb21f2db4ae0e546395 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Wed, 4 Jan 2017 11:33:09 -0800 Subject: [PATCH] "make clean" shouldn't fail if "make" wasn't first run --- Makefile.in | 6 +++--- 1 file 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 -- 2.30.2