 make install                                            &&
 sedit 's:../examples/README.html:examples/README.html:' doc/GAlib.html &&
 mkdir -p /usr/doc/galib                                 &&
 cp -a doc/* /usr/doc/galib                              &&
 if [ "$GALIB_EXAMPLES" == "y" ]; then
  mkdir -p /usr/share/galib /usr/share/galib/src         \
  /usr/share/galib/bin                                     &&
  find ./examples -type f -perm 755 -exec                  \
  sh -c  'cp {} /usr/share/galib/bin &&                    \
  cp {}?C /usr/share/galib/src'  \;                        &&
  cp makevars /usr/share/galib/src                         &&
  sedit 's:GA_INC_DIR= ..:#GA_INC_DIR= ..:' examples/makefile &&
  sedit 's:GA_LIB_DIR= ../ga:#GA_LIB_DIR= ../ga:' examples/makefile &&
  sedit 's:#GA_LIB_DIR= /usr/local/lib:GA_LIB_DIR= /usr/lib:' examples/makefile &&
  sedit 's:#GA_INC_DIR= /usr/local/include:GA_INC_DIR= /usr/include:' examples/makefile &&
  cp examples/makefile /usr/share/galib/src                &&
  ln -s $TRACK_ROOT/usr/share/galib/bin/* /usr/bin                    &&
  mkdir -p /usr/doc/galib/examples                         &&
  cp examples/README.txt /usr/doc/galib/examples          &&
  ln -s $TRACK_ROOT/usr/share/galib/src/* /usr/doc/galib/examples 
 fi
