The meson-based build can compile and install a release target, including any available translation data.
For development and testing use the included Makefile, which can build, but not install, the project. See § [Building using the included Makefile].
Meson's default installation prefix is /usr/local
.
[CC=gcc] meson setup build # set CC to disable ccache autodetection
meson compile -C build
meson install
GTK+-3 release build : make
GTK+-2 release build : make GTK=2
standard debug build : make DEBUG=1
run tests in a debug build : make TEST=1 [TEST_GROUP]
custom build : make [VARS] [DEBUG=1] [TEST=1]
The top Makefile sets LOCALEDIR equals to /usr/local/share/locale
.
You can change it by passing, e.g., LOCALEDIR=/usr/share/locale
to the
make command.
The standard build runs $(CC)
passing default release options.
If the make invocation includes DEBUG=1
the Makefile appends default
debug options to the set of release options, overriding the release intent.
TEST=1
appends more debug options enabling test hooks in the binary file.
See the main Makefile for the available TEST_GROUP
targets.
Make invokes $(CC)
passing CPPFLAGS
, DEBUG_CPPFLAGS
, CFLAGS
and
DEBUG_CFLAGS
in this order. DEBUG=1
and TEST=1
append to the DEBUG_*
variables overriding their values including those set on the command line.
Make runs the following non-standard tools, which you will need to install on your system if you intend to modify and recompile the source code:
To update the Gettext POT template in directory ./po
:
meson compile -C build mdview-pot
To update translations under directory build/po
:
meson compile -C build # don't also append target mdview-update-po