diff --git a/Makefile b/Makefile index fee320ff..010b5731 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,11 @@ DIRS=driverlib projects all: @for d in ${DIRS}; do \ - make -C $$d ;\ + ${MAKE} -C $$d ;\ + done + +clean: + @for d in ${DIRS}; do \ + ${MAKE} -C $$d clean ;\ done diff --git a/projects/Makefile b/projects/Makefile index 5622bdcd..05aa483b 100644 --- a/projects/Makefile +++ b/projects/Makefile @@ -1,10 +1,14 @@ include ../makedefs -DIRS=blinky uart_echo project0 +DIRS=blinky uart_echo project0 i2c-sensors project1 all: @for d in ${DIRS}; do \ make -C $$d ;\ done +clean: + @for d in ${DIRS}; do \ + make -C $$d clean ;\ + done