summaryrefslogtreecommitdiffstats
path: root/bootstrap
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-03-07 17:11:51 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-03-07 17:11:51 (GMT)
commitcc9a43dd13f07aab0fbf6d2ae6f2a4548b670cd0 (patch)
treecc7befb099754cec1862c6f9ac49c9b81a6f6a54 /bootstrap
parentb629f608d40c77b4fd44702ab4e313db64d9fdf1 (diff)
downloadCMake-cc9a43dd13f07aab0fbf6d2ae6f2a4548b670cd0.zip
CMake-cc9a43dd13f07aab0fbf6d2ae6f2a4548b670cd0.tar.gz
CMake-cc9a43dd13f07aab0fbf6d2ae6f2a4548b670cd0.tar.bz2
ENH: Add proper dependencies for cmBootstrapCommands
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap5
1 files changed, 5 insertions, 0 deletions
diff --git a/bootstrap b/bootstrap
index 9614793..377e6ed 100755
--- a/bootstrap
+++ b/bootstrap
@@ -877,6 +877,10 @@ for a in ${CMAKE_CXX_SOURCES} ${CMAKE_C_SOURCES} ${KWSYS_CXX_SOURCES} ${KWSYS_C_
objs="${objs} ${a}.o"
done
+# Generate dependencies for cmBootstrapCommands.cxx
+cmBootstrapCommandsDeps=`grep "#include.*cm[^.]*.cxx" ${cmake_source_dir}/Source/cmBootstrapCommands.cxx | sed "s/.* \"\(.*\)\"/\1/" | awk "{ print \"${cmake_source_dir}/Source/\" \\$1}"`
+cmBootstrapCommandsDeps=`echo $cmBootstrapCommandsDeps`
+
if [ "x${cmake_ansi_cxx_flags}" != "x" ]; then
cmake_cxx_flags="${cmake_ansi_cxx_flags} ${cmake_cxx_flags}"
fi
@@ -900,6 +904,7 @@ for a in ${CMAKE_CXX_SOURCES}; do
echo "${a}.o : ${src} ${dep}" >> "${cmake_bootstrap_dir}/Makefile"
echo " ${cmake_cxx_compiler} ${cmake_cxx_flags} -c ${src} -o ${a}.o" >> "${cmake_bootstrap_dir}/Makefile"
done
+echo "cmBootstrapCommands.o: $cmBootstrapCommandsDeps" >> "${cmake_bootstrap_dir}/Makefile"
for a in ${CMAKE_C_SOURCES}; do
src=`cmake_escape "${cmake_source_dir}/Source/${a}.c"`
echo "${a}.o : ${src} ${dep}" >> "${cmake_bootstrap_dir}/Makefile"