Install file locations

In addition to the execution command specifications which are given to configure as environment variables, the locations where Klipspringer files are installed can be set with make parameters. The locations are determined by:

  • PREFIX, which defaults to /usr/local.
  • LIBDIR, directory of installed Klipspringer files, which defaults to PREFIX plus /lib/klipspringer- plus the Klipspringer version identifier.
  • BINDIR, directory of symbolic links to Klipspringer executables, which defaults to PREFIX plus /bin.
  • ETCDIR, configuration file directory for the Klipspringer hub, which defaults to /etc/klipspringer-hub.
  • SYSTEMDDIR, where to place a symbolic link to the unit file, if installing on a system with systemd. The default is set by configure to its best guess.
  • DESTDIR, which is not set by default, but can be set to a mount point of the file system for the installation. For instance, use DESTDIR=/target/machine to place files in /target/machine/usr/local and /target/machine/etc/klipspringer-hub instead of /usr/local and /klipspringer-hub.

PREFIX, BINDIR, and ETCDIR should be set to the same values during make and make install, to make the contents of executable scripts harmonize with the actual file locations. For example:

make clean
make PREFIX=/my/preferred/path
sudo make PREFIX=/my/preferred/path install