Correct BuildTest makefiles to use LUFA_PATH rather than LUFA_ROOT_PATH.
[pub/USBasp.git] / BuildTests / BoardDriverTest / makefile
index 252b3f8..54afa57 100644 (file)
@@ -11,8 +11,8 @@
 # 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
@@ -26,7 +26,7 @@ end:
        @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
@@ -63,4 +63,4 @@ clean:
 .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