blob: 119c7c887a05d16a9bc2b04944dace5ebc8da0dc (
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
27
28
29
30
31
32
33
34
35
|
#!/bin/sh
echo -n "SRCS=" > ./Makefile.inc
FIRST=1
for oldfile in *.c
do
if [ "$FIRST" = 1 ] ; then
echo -n " "$oldfile >> ./Makefile.inc
else
echo "\\" >> ./Makefile.inc
echo -n " " $oldfile >> ./Makefile.inc
fi
FIRST=0
done
echo "" >> ./Makefile.inc
echo -n "SUBS=" >> ./Makefile.inc
FIRST=1
for dir in *
do
if [ -d $dir ] ; then
if [ -f $dir/Makefile ] ; then
if [ "$FIRST" = 1 ] ; then
echo -n " "$dir >> ./Makefile.inc
else
echo "\\" >> ./Makefile.inc
echo -n " " $dir >> ./Makefile.inc
fi
FIRST=0
fi
fi
done
exit 0
|