By default debug version is build right in the source tree.
-
debug
Builds debug version indebug/
. -
release
Builds release version inrelease/
. -
man
Builds manual page indocs/dit.1
, requirespandoc
. -
coverage
Builds coverage incoverage/
putting report incoverage/data/
. Requiresuncov
to be installed. -
check
Builds and runs tests. Combine withdebug
orrelease
to build and run tests in that configuration. -
clean
Removes build artifacts for all configurations. -
install
Builds the application in release mode (release
target) and installs it.DESTDIR
can be set to point to root of the installation directory. -
uninstall
Removes files installed by theinstall
target. Make sure to specify the sameDESTDIR
as for installation.
Rebuilding a man-page requires pandoc
to be installed.
A regular installation under /usr/bin
can be done like this:
make install
Installation into custom directory (e.g. to make a package):
make DESTDIR=$PWD/build install
Similar to installation, but using uninstall
target:
make uninstall
Or for custom location:
make DESTDIR=$PWD/build uninstall