From daf4a56665241e704370bcfcc25a072110d2fcad 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 0d004f4..fdff186 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 158ed7f..6ceb0a6 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 65ded9b..a10908f 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 f3b892e..7dbc086 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 3445b44..f6e723a 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 cb26a0c..0063b4d 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