1 |
#!/bin/sh -x |
#!/bin/sh |
2 |
|
|
3 |
################################################################### |
################################################################### |
4 |
# [LibNN - Neural Networks Library] |
# [LibNN - Neural Networks Library] |
47 |
# is to run this script. |
# is to run this script. |
48 |
# |
# |
49 |
|
|
50 |
|
# subdirectories where this file is suppose to generate a Makefile. |
51 |
|
SUBDIRS="error init input learn misc networks propagate" |
52 |
|
|
53 |
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
|
58 |
|
|
59 |
touch .depend && |
touch .depend && |
60 |
|
echo " + running autoconf..." |
61 |
autoconf && |
autoconf && |
62 |
|
echo " + ./configure" |
63 |
./configure |
./configure |
64 |
|
echo " + generating Makefiles in subdirectories ..." |
65 |
|
for i in $SUBDIRS;\ |
66 |
|
do \ |
67 |
|
REPLACED=`echo $i | tr a-z A-Z`;\ |
68 |
|
echo " + Generating Makefile in $i";\ |
69 |
|
sed "s/SUBDIR_NAME/$REPLACED/g" subdirs.Makefile > $i/Makefile;\ |
70 |
|
done |
71 |
|
echo " +" |
72 |
|
echo " + now, you can run 'make', make byte', 'make opt', 'make doc', 'make clean', etc." |
73 |
|
echo " +" |