summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorQuey-Liang Kao <s101062801@m101.nthu.edu.tw>2017-01-04 00:04:45 +0800
committerQuey-Liang Kao <s101062801@m101.nthu.edu.tw>2017-01-04 00:05:55 +0800
commit8fd89c4f4228fcd8b7cae25c4d162e337618050a (patch)
treeb195765a7401c0f65f29902b1db58b6ae4d95fe2 /Makefile
parent61ac13fa908b756adb46bd4cb3cc4061961df0d5 (diff)
Fixes in the root makefile
Each cd command in the targets software, software_clean, and dasm is unnecessary. Also, fixes from make to $(MAKE) help the readability of build/dry-run output.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 2 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index ab02199..0515511 100644
--- a/Makefile
+++ b/Makefile
@@ -90,15 +90,12 @@ PROGRAM_ELF = $(srcdir)/software/$(PROGRAM)/$(PROGRAM)
.PHONY: software
software:
- cd $(PROGRAM_DIR);\
- make
+ $(MAKE) -C $(PROGRAM_DIR)
software_clean:
- cd $(PROGRAM_DIR);\
- make clean
+ $(MAKE) -C $(PROGRAM_DIR) clean
dasm: software
- cd $(PROGRAM_DIR); \
$(toolchain_dest)/bin/riscv32-unknown-elf-objdump -D $(PROGRAM_ELF)
#############################################################