common.h dependence leak

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, all:
I am study barebox, I want to remove all files not used, so I write this script.
here is a part of removing header (.h) files.
firstly, I didnot add LINE22 for speed.
but it not works for common.h.
I guess the file 'include/common.h' is leak of dependence in Makefiles.
Is anyone can check.

 1
  2 git checkout -f
  3 git clean -dfx
  4
  5
  6 hh=`find -name "*.h"`
  7
  8
  9 echo "CLEAN"
 10 make distclean  2>/dev/null 1>/dev/null
 11 wait
 12 echo "CONFIG"
 13 make -s omap3530_beagle_xload_defconfig  2>/dev/null 1>/dev/null
 14 wait
 15
 16 echo "START"
 17 for f in $hh
 18 do
 19
 20   rm $f
 21   echo -n -e "        $f\r"
 22   make clean 2>/dev/null 1>/dev/null   # LINE 22
 23   wait
 24   make -s -j24 2>/dev/null 1>/dev/null
 25   r=$?
 26   wait
 27
 28   if [ $r != 0 ]
 29   then
 30     echo "[KEEP]"
 31     git checkout $f
 32   else
 33     echo "[DEL]"
 34   fi
 35
 36
 37 done
 38

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox


[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux