File indexing completed on 2024-12-15 05:11:24
0001 #!/bin/sh 0002 # Usage : create_makefiles dir 0003 # (to be run from toplevel directory) 0004 # Will re-create all Makefiles in dir and its subdirs 0005 # Needs create_makefile in the path. 0006 # 0007 # David Faure <faure@kde.org> 0008 0009 if test ! -f Makefile && test -n "$OBJ_REPLACEMENT"; then 0010 objdir=`pwd | sed -e "$OBJ_REPLACEMENT"` 0011 cd $objdir 0012 fi 0013 0014 if test ! -f Makefile && test -n "$OBJ_SUBDIR"; then 0015 cd $OBJ_SUBDIR 0016 fi 0017 0018 if test ! -f Makefile; then 0019 echo "$0: in the current directory there is no Makefile" 0020 echo "you will have to run it from the top build dir." 0021 echo "if you do not have a Makefile there - rerun configure" 0022 exit 0023 fi 0024 0025 srcdir=`egrep '^srcdir *=' Makefile | sed -e "s#srcdir *= *##"` 0026 0027 ( cd $srcdir ; find $1 -type d | sed -e 's,/$,,' ) | \ 0028 while read a; do 0029 if test -f "$srcdir/$a/Makefile.am"; then 0030 test -d "$a" || mkdir -p "$a" 0031 create_makefile "$a/Makefile" 0032 fi 0033 done 0034