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
|
sharedir="$prefix/usr/share"
incdir="$prefix/usr/include"
else
incdir="$prefix/include"
sharedir="$prefix/share"
fi
# Libraries
# These may or may not exist, depending on what library build is done, so check
[ -e "$build/libk.a" ] && install -Dm644 -t "$libdir" "$build/libk.a"
[ -e "$build/libk.so" ] && install -Dm644 -t "$libdir" "$build/libk.so"
[ -e "$build/boot.o" ] && install -Dm644 -t "$libdir/libk" "$build/boot.o"
# Binaries
install -Dm755 -t "$bindir" "$build/kcore.testbin"
install -Dm755 -t "$bindir" "$build/kcli.testbin"
install -Dm755 -t "$bindir" "$build/kgraft.attach"
# Includes
for inc in "$build"/k/*; do
install -Dm644 -t "$incdir/k" "$inc"
done
# Documentation
for man in "$build"/doc/man/*; do
install -Dm644 -t "$sharedir/man" "$man"
done
for html in "$build"/doc/html/*; do
install -Dm644 -t "$sharedir/doc/libk/html" "$html"
done
for pdf in "$build"/doc/pdf/*; do
install -Dm644 -t "$sharedir/doc/libk/pdf" "$pdf"
done
|
|
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
|
sharedir="$prefix/usr/share"
incdir="$prefix/usr/include"
else
incdir="$prefix/include"
sharedir="$prefix/share"
fi
say "Starting install."
# Libraries
# These may or may not exist, depending on what library build is done, so check
say "Installing libraries..."
[ -e "$build/libk.a" ] && install -Dm644 -t "$libdir" "$build/libk.a"
[ -e "$build/libk.so" ] && install -Dm644 -t "$libdir" "$build/libk.so"
[ -e "$build/boot.o" ] && install -Dm644 -t "$libdir/libk" "$build/boot.o"
# Binaries
say "Installing binaries..."
install -Dm755 -t "$bindir" "$build/kcore.testbin"
install -Dm755 -t "$bindir" "$build/kcli.testbin"
install -Dm755 -t "$bindir" "$build/kgraft.attach"
# Includes
say "Installing includes..."
for inc in "$build"/k/*; do
install -Dm644 -t "$incdir/k" "$inc"
done
# Documentation
say "Installing documentation..."
for man in "$build"/doc/man/*; do
install -Dm644 -t "$sharedir/man" "$man"
done
for html in "$build"/doc/html/*; do
install -Dm644 -t "$sharedir/doc/libk/html" "$html"
done
for pdf in "$build"/doc/pdf/*; do
install -Dm644 -t "$sharedir/doc/libk/pdf" "$pdf"
done
say "Install done!"
|