Просмотр исходного кода

Remove .o and binaries after clean

z3APA3A 5 лет назад
Родитель
Сommit
daf4a56665
8 измененных файлов с 10 добавлено и 0 удалено
  1. 1 0
      Makefile.FreeBSD
  2. 1 0
      Makefile.Linux
  3. 1 0
      Makefile.Solaris
  4. 1 0
      Makefile.Solaris-gcc
  5. 3 0
      Makefile.inc
  6. 1 0
      Makefile.llvm
  7. 1 0
      Makefile.openwrt-mips
  8. 1 0
      Makefile.unix

+ 1 - 0
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

+ 1 - 0
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

+ 1 - 0
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

+ 1 - 0
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

+ 3 - 0
Makefile.inc

@@ -9,4 +9,7 @@ all:
 clean:
 	@$(REMOVECOMMAND) *$(OBJSUFFICS) $(COMPFILES)
 	@cd src && $(MAKE) clean
+	cd ..
+	@$(AFTERCLEAN)
+	
 

+ 1 - 0
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

+ 1 - 0
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

+ 1 - 0
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