diff --git a/Makefile b/Makefile index e422cb6..8945c55 100644 --- a/Makefile +++ b/Makefile @@ -15,5 +15,4 @@ install: all clean: rm -rf */*.o */*.ko */*.mod.c */.*.cmd .tmp_versions Module* modules* - - + $(MAKE) -C apps clean diff --git a/apps/Makefile b/apps/Makefile index 65ec4df..3fda1f8 100644 --- a/apps/Makefile +++ b/apps/Makefile @@ -1,4 +1,6 @@ -all: cit citin flashprog modt ddtest setmod ddflash +APPS = cit citin flashprog modt ddtest setmod ddflash + +all: $(APPS) cit: cit.c gcc -o cit cit.c -lpthread @@ -17,3 +19,6 @@ ddtest: ddtest.c ddflash: ddflash.c gcc -o ddflash ddflash.c + +clean: + rm -rf $(APPS)