Differences From
Artifact [ca0001a46e]:
12 12 sharedir="$prefix/usr/share"
13 13 incdir="$prefix/usr/include"
14 14 else
15 15 incdir="$prefix/include"
16 16 sharedir="$prefix/share"
17 17 fi
18 18
19 +say "Starting install."
20 +
19 21 # Libraries
20 22 # These may or may not exist, depending on what library build is done, so check
23 +say "Installing libraries..."
21 24 [ -e "$build/libk.a" ] && install -Dm644 -t "$libdir" "$build/libk.a"
22 25 [ -e "$build/libk.so" ] && install -Dm644 -t "$libdir" "$build/libk.so"
23 26 [ -e "$build/boot.o" ] && install -Dm644 -t "$libdir/libk" "$build/boot.o"
24 27
25 28 # Binaries
29 +say "Installing binaries..."
26 30 install -Dm755 -t "$bindir" "$build/kcore.testbin"
27 31 install -Dm755 -t "$bindir" "$build/kcli.testbin"
28 32 install -Dm755 -t "$bindir" "$build/kgraft.attach"
29 33
30 34 # Includes
35 +say "Installing includes..."
31 36 for inc in "$build"/k/*; do
32 37 install -Dm644 -t "$incdir/k" "$inc"
33 38 done
34 39
35 40 # Documentation
41 +say "Installing documentation..."
36 42 for man in "$build"/doc/man/*; do
37 43 install -Dm644 -t "$sharedir/man" "$man"
38 44 done
39 45 for html in "$build"/doc/html/*; do
40 46 install -Dm644 -t "$sharedir/doc/libk/html" "$html"
41 47 done
42 48 for pdf in "$build"/doc/pdf/*; do
43 49 install -Dm644 -t "$sharedir/doc/libk/pdf" "$pdf"
44 50 done
51 +say "Install done!"