Make bootstrap clean a little smarter.

It doesn't delete config.h[.in] or Makefile in the directories in which
they are not generated.
This commit is contained in:
Bill Currie 2010-11-24 15:47:33 +09:00
parent d0370f7cf5
commit 624a1630f3

View file

@ -10,8 +10,8 @@ if test "$1" = "clean"; then
fi
find . -name Makefile.in -print0 | xargs $ARGS rm -f
find . -name config.h.in -print0 | xargs $ARGS rm -f
find . -name config.h -print0 | xargs $ARGS rm -f
find . -path ./tools/texpaint -prune -o -name config.h.in -print0 | xargs $ARGS rm -f
find . \( -path ./vc2005 -o -path ./vc2008 \) -prune -o -name config.h -print0 | xargs $ARGS rm -f
find . -name stamp-h1 -print0 | xargs $ARGS rm -f
find . -name '*~' -type f -print0 | xargs $ARGS rm -f
find . -name '*.rej' -type f -print0 | xargs $ARGS rm -f
@ -23,7 +23,7 @@ if test "$1" = "clean"; then
rm -rf autom4te.cache
cd -
find . -name Makefile -print0 | xargs $ARGS rm -f
find . \( -path ./tools/gas2masm -o -path ./tools/quaketoascii \) -name Makefile -print0 | xargs $ARGS rm -f
find . -name core -print0 | xargs $ARGS rm -f
rm -f RPM/build_rpm RPM/quakeforge.conf RPM/quakeforge.spec RPM/rpmmacros
find . -name '*.o' -type f -print0 | xargs $ARGS rm -f