aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 66c1d3b..a3af834 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,12 @@
UNAME_S := $(shell uname -s)
-export ARDUINO_PATH = /home/dakkar/HW/KeyboardIO/arduino-1.8.7
-export SKETCHBOOK_DIR = /home/dakkar/HW/KeyboardIO
-export PACKAGE_DIR = /home/dakkar/HW/KeyboardIO/built
+THISDIR := $(shell dirname $(lastword $(MAKEFILE_LIST)))
+
+export SKETCHBOOK_DIR = $(shell readlink -f $(THISDIR)/..)
+
+export ARDUINO_PATH = $(SKETCHBOOK_DIR)/arduino-1.8.7
+export PACKAGE_DIR = $(SKETCHBOOK_DIR)/built
+export LIB_PROPERTIES_PATH = $(THISDIR)
KALEIDOSCOPE_BUILDER_DIR = $(SKETCHBOOK_DIR)/hardware/keyboardio/avr/libraries/Kaleidoscope/bin/