分类: LINUX
2007-12-02 23:37:39
main: null.out null.out: ./compile.sh clean: rm *.out |
#!/bin/bash for cpp in *.cpp do out="${cpp%.cpp}.out" if test ${cpp} -nt ${out} then printf "g++ -o %s %s\n" "${out}" "${cpp}" g++ -o ${out} ${cpp} fi done |