summaryrefslogtreecommitdiff
path: root/src/modules/configure
blob: e2a6efd7430af2ee5c51ea8de146ee289596d7ab (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
#!/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 [ "$FIRST" = 1 ] ; then
			echo -n " "$dir >> ./Makefile.inc
	        else
			echo "\\" >> ./Makefile.inc
			echo -n "     " $dir >> ./Makefile.inc
		fi
		FIRST=0
	fi
done

exit 0