aboutsummaryrefslogtreecommitdiffstats
path: root/sdk/bin/install.make
blob: fc63cc67a7aefdb3dc80254e0499e7aef3140cc5 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
echo "root="$CONFIG_ROOT >>config.make

if test -z "$CONFIG_PREFIX" ; then
	echo 'prefix=$(root)'$CONFIG_HOST >>config.make
else
	echo 'prefix=$(root)'$CONFIG_PREFIX >>config.make
fi

if test -z "$CONFIG_EPREFIX" ; then
	echo 'eprefix=$(prefix)' >>config.make
else
	echo 'eprefix=$(root)'$CONFIG_EPREFIX >>config.make
fi

if test -z "$CONFIG_SHARE" ; then
	if test -d $CONFIG_HOST/share ; then
		echo 'share=$(prefix)/share' >>config.make
	else
		echo 'share=$(prefix)' >>config.make
	fi
else
	echo 'share=$(root)'$CONFIG_SHARE >>config.make
fi
	

if test -z "$CONFIG_CONFDIR" ; then
	echo 'SYSCONFDIR=$(root)/etc' >>config.make
else
	echo 'SYSCONFDIR=$(root)'$CONFIG_CONFDIR >>config.make
fi

if test -z "$CONFIG_BINDIR" ; then
	echo 'BINDIR=$(eprefix)/bin' >>config.make
else
	echo 'BINDIR=$(root)'$CONFIG_BINDIR >>config.make
fi

if test -z "$CONFIG_SBINDIR" ; then
	if test -d $CONFIG_HOST/sbin ; then
		echo 'SBINDIR=$(eprefix)/sbin' >>config.make
	else
		echo 'SBINDIR=$(root)/etc' >>config.make
	fi
else
	echo 'SBINDIR=$(root)'$CONFIG_SBINDIR >>config.make
fi

if test -z "$CONFIG_LIBDIR" ; then
	echo 'LIBDIR=$(eprefix)/lib' >>config.make
else
	echo 'LIBDIR=$(root)'$CONFIG_LIBDIR >>config.make
fi

if test -z "$CONFIG_SLIBDIR" ; then
	echo 'SLIBDIR=$(root)/lib' >>config.make
else
	echo 'SLIBDIR=$(root)'$CONFIG_SLIBDIR >>config.make
fi

if test -z "$CONFIG_MANDIR" ; then
	if test -d $CONFIG_HOST/share/man ; then
		echo 'MANDIR=$(share)/man' >>config.make
	else
		echo 'MANDIR=$(prefix)/man' >>config.make
	fi
else
	echo 'MANDIR=$(root)'$CONFIG_MANDIR >>config.make
fi

if test -z "$CONFIG_INFODIR" ; then
	if test -d $CONFIG_HOST/share/info ; then
		echo 'INFODIR=$(share)/info' >>config.make
	else
		echo 'INFODIR=$(prefix)/info' >>config.make
	fi
else
	echo 'INFODIR=$(root)'$CONFIG_INFODIR >>config.make
fi

if test -z "$CONFIG_HTMLDIR" ; then
	if test -d $CONFIG_HOST/share/html ; then
		echo 'HTMLDIR=$(share)/html' >>config.make
	else
		echo 'HTMLDIR=$(prefix)/html' >>config.make
	fi
else
	echo 'HTMLDIR=$(root)'$CONFIG_HTMLDIR >>config.make
fi

if test -z "$CONFIG_DISTDIR" ; then
	if test -d $CONFIG_HOST/share/dist ; then
		echo 'DISTDIR=$(share)/dist' >>config.make
	else
		echo 'DISTDIR=$(prefix)/dist' >>config.make
	fi
else
	echo 'DISTDIR=$(root)'$CONFIG_DISTDIR >>config.make
fi

echo "CONFIG_ROOT="$CONFIG_ROOT >>config.cache
echo "CONFIG_PREFIX="$CONFIG_PREFIX >>config.cache
echo "CONFIG_EPREFIX="$CONFIG_EPREFIX >>config.cache
echo "CONFIG_SHARE="$CONFIG_SHARE >>config.cache
echo "CONFIG_CONFDIR="$CONFIG_CONFDIR >>config.cache
echo "CONFIG_BINDIR="$CONFIG_BINDIR >>config.cache
echo "CONFIG_SBINDIR="$CONFIG_SBINDIR >>config.cache
echo "CONFIG_LIBDIR="$CONFIG_LIBDIR >>config.cache
echo "CONFIG_SLIBDIR="$CONFIG_SLIBDIR >>config.cache
echo "CONFIG_INFODIR="$CONFIG_INFODIR >>config.cache
echo "CONFIG_MANDIR="$CONFIG_MANDIR >>config.cache
echo "CONFIG_HTMLDIR="$CONFIG_HTMLDIR >>config.cache
echo "CONFIG_DISTDIR="$CONFIG_DISTDIR >>config.cache