From b9bb9a55f33a8204df53c5d74730ff8a5392fbc6 Mon Sep 17 00:00:00 2001 From: z3APA3A <3APA3A@3proxy.ru> Date: Fri, 20 Nov 2020 13:30:38 +0300 Subject: [PATCH] Remove .o and binaries after clean --- Makefile.FreeBSD | 1 + Makefile.Linux | 1 + Makefile.Solaris | 1 + Makefile.Solaris-gcc | 1 + Makefile.inc | 3 +++ Makefile.llvm | 1 + Makefile.openwrt-mips | 1 + Makefile.unix | 1 + 8 files changed, 10 insertions(+) diff --git a/Makefile.FreeBSD b/Makefile.FreeBSD index 8142bdf..c7d7ae8 100644 --- a/Makefile.FreeBSD +++ b/Makefile.FreeBSD @@ -28,6 +28,7 @@ OBJSUFFICS = .o DEFINEOPTION = -D COMPFILES = *~ REMOVECOMMAND = rm -f +AFTERCLEAN = find src/ -type f -name "*.o" -delete && find src/ -type f -name "Makefile.var" -delete && find bin/ -type f -executable -delete TYPECOMMAND = cat COMPATLIBS = MAKEFILE = Makefile.FreeBSD diff --git a/Makefile.Linux b/Makefile.Linux index 110bb66..95ae311 100644 --- a/Makefile.Linux +++ b/Makefile.Linux @@ -26,6 +26,7 @@ OBJSUFFICS = .o DEFINEOPTION = -D COMPFILES = *~ REMOVECOMMAND = rm -f +AFTERCLEAN = find src/ -type f -name "*.o" -delete && find src/ -type f -name "Makefile.var" -delete && find bin/ -type f -executable -delete TYPECOMMAND = cat COMPATLIBS = MAKEFILE = Makefile.Linux diff --git a/Makefile.Solaris b/Makefile.Solaris index 54db673..414598e 100644 --- a/Makefile.Solaris +++ b/Makefile.Solaris @@ -25,6 +25,7 @@ OBJSUFFICS = .o DEFINEOPTION = -D COMPFILES = *~ REMOVECOMMAND = rm -f +AFTERCLEAN = find src/ -type f -name "*.o" -delete && find src/ -type f -name "Makefile.var" -delete && find bin/ -type f -executable -delete TYPECOMMAND = cat COMPATLIBS = MAKEFILE = Makefile.Solaris diff --git a/Makefile.Solaris-gcc b/Makefile.Solaris-gcc index 27ae32c..6369337 100644 --- a/Makefile.Solaris-gcc +++ b/Makefile.Solaris-gcc @@ -26,6 +26,7 @@ OBJSUFFICS = .o DEFINEOPTION = -D COMPFILES = *~ REMOVECOMMAND = rm -f +AFTERCLEAN = find src/ -type f -name "*.o" -delete && find src/ -type f -name "Makefile.var" -delete && find bin/ -type f -executable -delete TYPECOMMAND = cat COMPATLIBS = MAKEFILE = Makefile.Solaris-gcc diff --git a/Makefile.inc b/Makefile.inc index 4e088ee..8c72c55 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -9,4 +9,7 @@ all: clean: @$(REMOVECOMMAND) *$(OBJSUFFICS) $(COMPFILES) @cd src && $(MAKE) clean + cd .. + @$(AFTERCLEAN) + diff --git a/Makefile.llvm b/Makefile.llvm index fb93f6d..849e099 100644 --- a/Makefile.llvm +++ b/Makefile.llvm @@ -25,6 +25,7 @@ OBJSUFFICS = .o DEFINEOPTION = -D COMPFILES = *.tmp REMOVECOMMAND = rm -f +AFTERCLEAN = find src/ -type f -name "*.o" -delete && find src/ -type f -name "Makefile.var" -delete && find bin/ -type f -executable -delete TYPECOMMAND = cat COMPATLIBS = MAKEFILE = Makefile.win diff --git a/Makefile.openwrt-mips b/Makefile.openwrt-mips index 7832547..1e8e844 100644 --- a/Makefile.openwrt-mips +++ b/Makefile.openwrt-mips @@ -26,6 +26,7 @@ OBJSUFFICS = .o DEFINEOPTION = -D COMPFILES = *~ REMOVECOMMAND = rm -f +AFTERCLEAN = find src/ -type f -name "*.o" -delete && find src/ -type f -name "Makefile.var" -delete && find bin/ -type f -executable -delete TYPECOMMAND = cat COMPATLIBS = MAKEFILE = Makefile.openwrt-mips diff --git a/Makefile.unix b/Makefile.unix index 00462f8..6575aeb 100644 --- a/Makefile.unix +++ b/Makefile.unix @@ -29,6 +29,7 @@ OBJSUFFICS = .o DEFINEOPTION = -D COMPFILES = *~ REMOVECOMMAND = rm -f +AFTERCLEAN = find src/ -type f -name "*.o" -delete && find src/ -type f -name "Makefile.var" -delete && find bin/ -type f -executable -delete TYPECOMMAND = cat COMPATLIBS = MAKEFILE = Makefile.unix