From d5374c27286219e85fb978b1961a1503247c7ef4 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Thu, 26 May 2016 12:17:01 +0200 Subject: [PATCH] Adding apps dir to clean target --- Makefile | 3 +-- apps/Makefile | 7 ++++++- 2 files changed, 7 insertions(+), 3 deletions(-) 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)