Use auto-detection of project directories for the demo, project and bootloader makefiles.
[pub/USBasp.git] / Demos / DualRole / ClassDriver / makefile
index 28e06a3..f01e5a8 100644 (file)
 # custom LUFA library build options are reflected in the compiled
 # code.
 
+PROJECT_DIRECTORIES = $(shell ls -d *)
+
 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) $@;)
+