mirror of https://github.com/lammps/lammps.git
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@1181 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
6af908a49b
commit
370c6ad8a2
50
src/Make.csh
50
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
|
||||
|
|
Loading…
Reference in New Issue