blob: a6fc076a9425548fd855f5c9960d41160df807a0 [file] [log] [blame]
Matt Spinler12bdf052017-03-09 16:01:39 -06001#!/bin/bash
2
3files=()
4echo "openpower_procedures_cpp_files = \\"
5for type in "$@";
6do
7 type=${type// /} #remove spaces
8 for file in $(ls procedures/$type/*.cpp);
9 do
10 files+=($file)
11 done
12done
13
14for file in ${files[@]};
15do
16 echo " $file \\"
17done
18echo
19
20cat << MAKEFILE
21openpower_procedures.cpp: \$(openpower_procedures_cpp_files)
22 cat \$^ > \$@
23
24MAKEFILE