Enable silent build rules by default.
You can still use verbose build rules by using any of the following
methods:
* run `configure` with the `--disable-silent-rules` argument
* run `make` with the `V=1` argument
This hides the compiler command line which makes debugging users'
problems more difficult. To compensate for that, this prints the
build flags separately, but a lot less frequently:
For each part of the build (`libgphoto2_port.la`, iolibs,
`libgphoto2.la`, camlibs), if something of that part has been
rebuilt, prints the build flags (_CPPFLAGS, _CFLAGS, _LIBADD,
_LDFLAGS) once.
Always prints the environment variables CPPFLAGS CFLAGS LDADD
LIBADD LDFLAGS once, whether they are the defaults the configure
script sets or given on the `make` command line.
Not all make recipes have been converted to be completely silent,
but the majority (especially the Automake standard recipes) are
now silent.
This requires gettext version 0.18.3 or later, and it removes
the GP_GETTEXT_HACK which used to generate a po/Makevars file
from the po/Makevers.template.
gettext 0.18.3 is the same gettext version requirement
as libexif uses.
gettext 0.18.3 has been released 2013-07-07, which is
a similar timeframe of the autoconf, automake and libtool
releases we require.
If you ever need to build a post 2021 libgphoto2 from
git on a system with pre 0.18.3 gettext, you can can
always prepare a tarball using "make dist" on a system
with gettext 0.18.3 or later, and build that tarball
on the older machine.
Not generating the po/Makevars file any more means that
we need additional consistency checks for the parts of
po/Makevars which cannot be derived from the Autoconf
standard set of AC_SUBST()ed Makefile.in variables.
Only use a single gphoto-m4/ subdir - namely that in
libgphoto2_port/gphoto-m4/. This prevents us from
needing to synchronize the contents of the gphoto-m4/
and the libgphoto2_port/gphoto-m4/ directories.
We can do that by switching from recursive make for the
gphoto-m4 subdirectories to using
include path/to/gphoto-m4/Makefile-files
from both the top-level Makefile.am and libgphoto2_port/Makefile.am
using %reldir% (introduced in automake 1.14).
While adding support for "make rpm" appeared to be a good idea in the
early 2000s, it really is not and only clutters up the build system.
At least the libgphoto2_port translation cannot have worked in the
rpm package since at least 5255d80210
from 2007-10-28, so it is a good guess that this has not really been
in use.
Add convenience make targets for helping deal with *.po files:
git-checkout-po
Run "git checkout *.po" in all po/ subdirs.
This can be useful after "make dist".
update-po
Run "make update-po" in all po/ subdirs.
* These files have not been updated for years.
* They probably don't work any more.
* OS/2 files are missing for most of the system.
* gphoto2-port-portability-os2.h has been integrated into
gphoto2-port-portability.h (I wanted to get rid of the longest filename)
* usb-os2.c is still there in libgphoto2_port/usb.
* If someone wants to revive the OS/2 port, they are welcome to start
based on the stuff removed or from scratch.
* Perhaps it might be easier to just use the present
GNU make/libtool build chain than fabricating something with nmake.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9280 67ed7778-7388-44ab-90cf-0a291f65f57c
* generate check- scripts from config.status
* use libexecdir for print-* utilities
* let utilsdir be defined from configure
* require libexif >= 0.6.13; automatically update libgphoto2.pc with that.
* get rid of "make check" local installation
* moved some tests from "make check" to "make installcheck"
* use one common rule file for "make installcheck"
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9231 67ed7778-7388-44ab-90cf-0a291f65f57c
This moves the header files to a new subdirectory gphoto2 in both
libgphoto2 and libphoto2_port/libgphoto2. All references are
adapted appropriately.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9221 67ed7778-7388-44ab-90cf-0a291f65f57c
#
# This finds code patterns we don't want to have.
#
# Use it to get rid of existing patterns and make sure they aren't
# reintroduced later.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@6758 67ed7778-7388-44ab-90cf-0a291f65f57c