From 3c1b28cf5ff16fede61f2abf37d5616f3e661036 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sat, 14 Jul 2012 23:04:37 +0000 Subject: Use immediate variable expansion in the second-deepest level makefile scripts to prevent multiple evaluation of the PROJECT_DIRECTORIES variable. --- Bootloaders/makefile | 2 +- Demos/Device/ClassDriver/makefile | 2 +- Demos/Device/LowLevel/makefile | 2 +- Demos/DualRole/ClassDriver/makefile | 2 +- Demos/Host/ClassDriver/makefile | 2 +- Demos/Host/LowLevel/makefile | 2 +- Projects/makefile | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Bootloaders/makefile b/Bootloaders/makefile index 1a4d3457e..003069b9a 100644 --- a/Bootloaders/makefile +++ b/Bootloaders/makefile @@ -13,7 +13,7 @@ # custom LUFA library build options are reflected in the compiled # code. -PROJECT_DIRECTORIES = $(shell ls -d */) +PROJECT_DIRECTORIES := $(shell ls -d */) # This makefile is potentially infinitely recursive if something really bad # happens when determining the set of project directories - hard-abort if diff --git a/Demos/Device/ClassDriver/makefile b/Demos/Device/ClassDriver/makefile index 797a483fa..776288f29 100644 --- a/Demos/Device/ClassDriver/makefile +++ b/Demos/Device/ClassDriver/makefile @@ -13,7 +13,7 @@ # custom LUFA library build options are reflected in the compiled # code. -PROJECT_DIRECTORIES = $(shell ls -d */) +PROJECT_DIRECTORIES := $(shell ls -d */) # This makefile is potentially infinitely recursive if something really bad # happens when determining the set of project directories - hard-abort if diff --git a/Demos/Device/LowLevel/makefile b/Demos/Device/LowLevel/makefile index 797a483fa..776288f29 100644 --- a/Demos/Device/LowLevel/makefile +++ b/Demos/Device/LowLevel/makefile @@ -13,7 +13,7 @@ # custom LUFA library build options are reflected in the compiled # code. -PROJECT_DIRECTORIES = $(shell ls -d */) +PROJECT_DIRECTORIES := $(shell ls -d */) # This makefile is potentially infinitely recursive if something really bad # happens when determining the set of project directories - hard-abort if diff --git a/Demos/DualRole/ClassDriver/makefile b/Demos/DualRole/ClassDriver/makefile index b9538fe3b..6d16493ee 100644 --- a/Demos/DualRole/ClassDriver/makefile +++ b/Demos/DualRole/ClassDriver/makefile @@ -13,7 +13,7 @@ # custom LUFA library build options are reflected in the compiled # code. -PROJECT_DIRECTORIES = $(shell ls -d */) +PROJECT_DIRECTORIES := $(shell ls -d */) # This makefile is potentially infinitely recursive if something really bad # happens when determining the set of project directories - hard-abort if diff --git a/Demos/Host/ClassDriver/makefile b/Demos/Host/ClassDriver/makefile index d057a1c69..e33bf963b 100644 --- a/Demos/Host/ClassDriver/makefile +++ b/Demos/Host/ClassDriver/makefile @@ -13,7 +13,7 @@ # custom LUFA library build options are reflected in the compiled # code. -PROJECT_DIRECTORIES = $(shell ls -d */) +PROJECT_DIRECTORIES := $(shell ls -d */) # This makefile is potentially infinitely recursive if something really bad # happens when determining the set of project directories - hard-abort if diff --git a/Demos/Host/LowLevel/makefile b/Demos/Host/LowLevel/makefile index d057a1c69..e33bf963b 100644 --- a/Demos/Host/LowLevel/makefile +++ b/Demos/Host/LowLevel/makefile @@ -13,7 +13,7 @@ # custom LUFA library build options are reflected in the compiled # code. -PROJECT_DIRECTORIES = $(shell ls -d */) +PROJECT_DIRECTORIES := $(shell ls -d */) # This makefile is potentially infinitely recursive if something really bad # happens when determining the set of project directories - hard-abort if diff --git a/Projects/makefile b/Projects/makefile index f4b411145..dd0ea2e8f 100644 --- a/Projects/makefile +++ b/Projects/makefile @@ -13,7 +13,7 @@ # custom LUFA library build options are reflected in the compiled # code. -PROJECT_DIRECTORIES = $(shell ls -d */) +PROJECT_DIRECTORIES := $(shell ls -d */) # This makefile is potentially infinitely recursive if something really bad # happens when determining the set of project directories - hard-abort if -- cgit v1.2.3