projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use auto-detection of project directories for the demo, project and bootloader makefiles.
[pub/USBasp.git]
/
Demos
/
DualRole
/
ClassDriver
/
makefile
diff --git
a/Demos/DualRole/ClassDriver/makefile
b/Demos/DualRole/ClassDriver/makefile
index
28e06a3
..
f01e5a8
100644
(file)
--- a/
Demos/DualRole/ClassDriver/makefile
+++ b/
Demos/DualRole/ClassDriver/makefile
@@
-13,9
+13,12
@@
# custom LUFA library build options are reflected in the compiled
# code.
# custom LUFA library build options are reflected in the compiled
# code.
+PROJECT_DIRECTORIES = $(shell ls -d *)
+
all:
all:
- $(
MAKE) -s -C MouseHostDevice clean all
+ $(
foreach PROJECT, $(PROJECT_DIRECTORIES), $(MAKE) -s -C $(PROJECT) clean all;)
%:
%:
- $(MAKE) -s -C MouseHostDevice $@
+ $(foreach PROJECT, $(PROJECT_DIRECTORIES), $(MAKE) -s -C $(PROJECT) $@;)
+