Commit 3dbeef92 authored by gejun's avatar gejun

Update tools/make_all_examples and clean_all_examples for cmake

parent 50b8e999
saved_pwd_before_making=$PWD
for file in `find example tools -name Makefile`; do
for file in `find tools example -name CMakeLists.txt`; do
cd $(dirname $file)
echo
echo "[$file]"
make -s clean
rm -rf build
cd $saved_pwd_before_making
done
saved_pwd_before_making=$PWD
for file in `find tools example -name Makefile`; do
for file in `find tools example -name CMakeFiles -type d -prune -o -name CMakeLists.txt -print`; do
cd $(dirname $file)
echo
echo "[$file]"
if ! make -sj4; then
if ! ( rm -rf build && mkdir build && cd build && cmake .. && make -sj4 ); then
exit 1
fi
cd $saved_pwd_before_making
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment