From 9ab937b3460e7003856277ddf5dd95ba60245916 Mon Sep 17 00:00:00 2001 From: Howard Mao Date: Tue, 23 Feb 2016 23:11:27 -0800 Subject: [PATCH] make install rule copy the right things to the right places --- Makefile.in | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Makefile.in b/Makefile.in index 002426c..541263b 100644 --- a/Makefile.in +++ b/Makefile.in @@ -7,14 +7,18 @@ isa_src_dir := $(abs_top_src_dir)/isa all: benchmarks isa install: all - install -d $(instbasedir)/share/riscv-tests - install -p -m 644 *.hex $(instbasedir)/share/riscv-tests + install -d $(instbasedir)/share/riscv-tests/isa + install -d $(instbasedir)/share/riscv-tests/benchmarks + install -p -m 644 isa/* $(instbasedir)/share/riscv-tests/isa + install -p -m 644 benchmarks/* $(instbasedir)/share/riscv-tests/benchmarks benchmarks: - $(MAKE) -f $(bmarkdir)/Makefile bmarkdir=$(bmarkdir) + mkdir -p benchmarks + $(MAKE) -C benchmarks -f $(bmarkdir)/Makefile bmarkdir=$(bmarkdir) isa: - $(MAKE) -f $(isa_src_dir)/Makefile isa_src_dir=$(isa_src_dir) + mkdir -p isa + $(MAKE) -C isa -f $(isa_src_dir)/Makefile isa_src_dir=$(isa_src_dir) clean: $(MAKE) -f $(isa_src_dir)/Makefile isa_src_dir=$(isa_src_dir) clean -- 2.30.2