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;