# possible board targets using their respective\r
# compiler.\r
\r
-# Path to the root of the LUFA tree to scan\r
-LUFA_ROOT_PATH = ../..\r
+# Path to the LUFA library core\r
+LUFA_PATH = ../../LUFA/\r
\r
\r
all: begin makeboardlist testboards clean end\r
@echo\r
\r
makeboardlist:\r
- @grep "BOARD_" $(LUFA_ROOT_PATH)/LUFA/Common/BoardTypes.h | cut -d'#' -f2 | cut -d' ' -f2 | grep "BOARD_" > BoardList.txt\r
+ @grep "BOARD_" $(patsubst %/,%,$(LUFA_PATH))/Common/BoardTypes.h | cut -d'#' -f2 | cut -d' ' -f2 | grep "BOARD_" > BoardList.txt\r
\r
testboards:\r
@echo "buildtest:" > BuildMakefile\r
.PHONY: all begin end makeboardlist testboards clean\r
\r
# Include LUFA build script makefiles\r
-include $(LUFA_ROOT_PATH)/LUFA/Build/lufa.core.in\r
+include $(LUFA_PATH)/Build/lufa.core.in\r