blob: b90a55a910ef204fa9d9997137556426e680b809 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/sh
if ! test -f ../Makefile; then
if test $1 != "fromtop"; then
echo "===> You need to run ./configure of the top level source dir first"
exit 1
else
exit 0
fi
fi
cxx=`sed -n '/^CXX=/ { s///; p; q; }' ../Makefile`
cxxflags=`sed -n '/^CXXFLAGS=/ { s///; p; q; }' ../Makefile`
for dir in commands html
do
echo "===> Creating $dir module Makefiles"
cd $dir
sed -n "s/=@CXXFLAGS@/=$cxxflags/; s/=@CXX@/=$cxx/; s/@CATEGORY@/$dir/g; w Makefile" ../Makefile.mods.in
for i in *.cpp
do
echo "../../../mods/$dir/./`echo $i | sed s/.cpp/.so/`: $i" >> Makefile
done
cd ..
done
|