From 4b23207f7468086b29e42d9d5952400bfff20b3d Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 4 May 2017 11:21:29 +0200 Subject: [PATCH] [fix] Makefile `clean` check and returns EXIT_SUCCESS (non blocking) --- central-manager/Makefile | 8 ++++---- plane/Makefile | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/central-manager/Makefile b/central-manager/Makefile index bbb147b..544119e 100644 --- a/central-manager/Makefile +++ b/central-manager/Makefile @@ -35,7 +35,7 @@ all: clean boot # cleans the compiled files clean: - rm lib/network/*.o; - rm lib/network/**/*.o; - rm lib/local/*.o; - rm boot; + find lib/network/*.o && rm lib/network/*.o || return 0; + find lib/network/**/*.o && rm lib/network/**/*.o || return 0; + find lib/local/*.o && rm lib/local/*.o || return 0; + find boot && rm boot || return 0; diff --git a/plane/Makefile b/plane/Makefile index f426b68..de56c35 100644 --- a/plane/Makefile +++ b/plane/Makefile @@ -19,9 +19,9 @@ boot: lib/network/tcp/client.o lib/network/udp/server.o plane.h plane.c # Run full compilation -all: boot +all: clean boot # cleans the compiled files clean: - rm boot; - rm ./lib/network/**/*.o + find ./lib/network/**/*.o && rm ./lib/network/**/*.o || return 0; + find boot && rm boot || return 0;