FoxelSA/rawdata-procedures — pull request #6 by luxigo (2014-11-24 09:36:01+00:00)
Title: Makefiles

#### For the directory and for each subdirectory:

make: build binaries
make clean: remove built binaries
make install: install project
make uninstall: uninstall project

#### Use INSTALL_ROOT and INSTALL_PREFIX to set install location

INSTALL_ROOT: filesystem root (eg: / or /mnt/here)

INSTALL_PREFIX: where to install project (relative to INSTALL_ROOT, default = /usr/local)

eg: make install INSTALL_ROOT=/ INSTALL_PREFIX=/usr/

* INSTALL_ROOT is needed since rawdata-downloader-tools must be installed at the system level, else INSTALL_PREFIX would be enough.

#### At the top level use "make dist" as a shortcut to:

"make install INSTALL_ROOT=$(pwd)/dist INSTALL_PREFIX=$(pwd)/dist/usr"

eg: for testing purpose (without installing at the system level), or to build a binary package for distribution purpose

#### Add a separate folder for rawdata-downloader-tools

In the future, installation of rawdata-donwloader-tools could become optional