From 4d6161b5f5697153d6d4e785269a190ee09ad072 Mon Sep 17 00:00:00 2001
From: Christian Colglazier <christian@cacolglazier.com>
Date: Sun, 12 Jul 2020 15:06:25 -0400
Subject: [PATCH] Build libaries added to makefile

---
 Makefile  | 6 ++++++
 README.md | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 2a49b7d..66abf81 100644
--- a/Makefile
+++ b/Makefile
@@ -7,3 +7,9 @@ DAISYSP_DIR = ./lib/daisySP
 
 SYSTEM_FILES_DIR = $(LIBDAISY_DIR)/core
 include $(SYSTEM_FILES_DIR)/Makefile
+
+libdaisy:
+	cd $(LIBDAISY_DIR) && make
+daisysp:
+	cd $(DAISYSP_DIR) && make
+lib: libdaisy daisysp
diff --git a/README.md b/README.md
index be8bab1..065ad77 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,7 @@ git push
 ```
 2. Build project
 ```sh
-cd ./lib/daisySP && make && cd ../libDaisy && make && cd ../.. && make
+make lib && make
 ```
 3. Plug usb into Daisy. Enter bootloader mode by holding the BOOT button down, and then pressing the RESET button. Once you release the RESET button, you can also let go of the BOOT button
 4. Write the binary to the Daisy