From 370c6ad8a28bc18223c50cd0110c6fb3780dc559 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Mon, 26 Nov 2007 22:20:03 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@1181 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/Make.csh | 50 ++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 42 insertions(+), 8 deletions(-) diff --git a/src/Make.csh b/src/Make.csh index 640bd47d2b..e4fd130420 100644 --- a/src/Make.csh +++ b/src/Make.csh @@ -3,16 +3,50 @@ if ($1 == "Makefile.lib") then - set list = `ls *.cpp | sed s/^main\.cpp//` - sed -i -e "s/SRC =\t.*/SRC =\t$list/" Makefile.lib - set list = `ls *.h` - sed -i -e "s/INC =\t.*/INC =\t$list/" Makefile.lib + set list1 = `ls [abcde]*.cpp` + set list2 = `ls [fghij]*.cpp` + set list3 = `ls [klmno]*.cpp | sed s/^main\.cpp//` + set list4 = `ls [pqrst]*.cpp` + set list5 = `ls [uvwxyz]*.cpp` + sed -i -e "s/SRC =\t.*/SRC =\t$list1/" Makefile.lib + sed -i -e "s/SRC =\t\(.*\)/SRC =\t\1 $list2/" Makefile.lib + sed -i -e "s/SRC =\t\(.*\)/SRC =\t\1 $list3/" Makefile.lib + sed -i -e "s/SRC =\t\(.*\)/SRC =\t\1 $list4/" Makefile.lib + sed -i -e "s/SRC =\t\(.*\)/SRC =\t\1 $list5/" Makefile.lib + + set list1 = `ls [abcde]*.h` + set list2 = `ls [fghij]*.h` + set list3 = `ls [klmno]*.h` + set list4 = `ls [pqrst]*.h` + set list5 = `ls [uvwxyz]*.h` + sed -i -e "s/INC =\t.*/INC =\t$list1/" Makefile.lib + sed -i -e "s/INC =\t\(.*\)/INC =\t\1 $list2/" Makefile.lib + sed -i -e "s/INC =\t\(.*\)/INC =\t\1 $list3/" Makefile.lib + sed -i -e "s/INC =\t\(.*\)/INC =\t\1 $list4/" Makefile.lib + sed -i -e "s/INC =\t\(.*\)/INC =\t\1 $list5/" Makefile.lib else if ($1 == "Makefile.list") then - set list = `ls *.cpp` - sed -i -e "s/SRC =\t.*/SRC =\t$list/" Makefile.list - set list = `ls *.h` - sed -i -e "s/INC =\t.*/INC =\t$list/" Makefile.list + set list1 = `ls [abcde]*.cpp` + set list2 = `ls [fghij]*.cpp` + set list3 = `ls [klmno]*.cpp` + set list4 = `ls [pqrst]*.cpp` + set list5 = `ls [uvwxyz]*.cpp` + sed -i -e "s/SRC =\t.*/SRC =\t$list1/" Makefile.list + sed -i -e "s/SRC =\t\(.*\)/SRC =\t\1 $list2/" Makefile.list + sed -i -e "s/SRC =\t\(.*\)/SRC =\t\1 $list3/" Makefile.list + sed -i -e "s/SRC =\t\(.*\)/SRC =\t\1 $list4/" Makefile.list + sed -i -e "s/SRC =\t\(.*\)/SRC =\t\1 $list5/" Makefile.list + + set list1 = `ls [abcde]*.h` + set list2 = `ls [fghij]*.h` + set list3 = `ls [klmno]*.h` + set list4 = `ls [pqrst]*.h` + set list5 = `ls [uvwxyz]*.h` + sed -i -e "s/INC =\t.*/INC =\t$list1/" Makefile.list + sed -i -e "s/INC =\t\(.*\)/INC =\t\1 $list2/" Makefile.list + sed -i -e "s/INC =\t\(.*\)/INC =\t\1 $list3/" Makefile.list + sed -i -e "s/INC =\t\(.*\)/INC =\t\1 $list4/" Makefile.list + sed -i -e "s/INC =\t\(.*\)/INC =\t\1 $list5/" Makefile.list endif