aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gen-deps.sh
blob: fafb3475b5c2569bb2326c98beeed48bade120f1 (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 -e

. package/info

echo '#'
echo '# This file has been generated by tools/gen-deps.sh'
echo '#'
echo

if test -d src/bin
then
	cd src/bin
	for FILE in $(find * -type f 2> /dev/null); do
		echo "${FILE}: src/bin/${FILE}"
		echo "\$(DESTDIR)\$(bindir)/${FILE}: ${FILE}"
	done
	cd ../..
fi

if test -d src/lib
then
	cd src/lib
	for FILE in $(find * -type f 2> /dev/null); do
		echo "${FILE}: src/lib/${FILE}"
		echo "\$(DESTDIR)\$(libdir)/${FILE}: ${FILE}"
	done
	cd ../..
fi

if test -f package/extras
then
	for EXTRA in $(cat package/extras); do
		echo "\$(DESTDIR)\$(libdir)/${EXTRA}: ${EXTRA}"
	done
fi