* updated kmailtransport (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / develop / elfkickers / elfkickers.conf
blob28fa761655427a70901e538e5e29f556f37ebd04
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/elfkickers/elfkickers.conf
3 # Copyright (C) 2004 - 2022 The T2 SDE Project
4
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 makeopt=
13 makeinstopt=
14 hook_add postmake 5 "pkg_elfkickers_main"
15 autodoc=0
17 pkg_elfkickers_main() {
18         local x= y=
20         # tiny cames with /free/ prebuilts
21         eval $MAKE -C tiny clean
23         # make all
24         for x in *; do
25                 if [ -d $x ]; then
26                         eval $MAKE -C $x $makeopt
27                 fi
28         done
30         # make install
31         echo "Installing..."
32         for x in *; do
33                 if [ -d $x -a $x != 'tiny' ]; then
34                         cp -v $x/$x $bindir/$x
35                 fi
36         done
38         # install doc
39         echo "Copying documentation..."
40         for x in *; do
41                 if [ -d $x ]; then
42                         mkdir -vp $docdir/$x
43                         if [ $x == 'tiny' ]; then
44                                 for y in $x/*; do
45                                         [ ! -x $y ] && cp -v $y $docdir/$x
46                                 done
47                         else
48                                 cp -v $x/README $docdir/$x/README
49                         fi
50                 else
51                         cp $x $docdir
52                 fi
53         done