|
From: Jun T. <tak...@kb...> - 2016-01-15 18:39:13
|
2015/06/06 03:02, Hans-Bernhard Bröker <HBB...@t-...> wrote:
> Am 05.06.2015 um 11:50 schrieb Jun T.:
>> With the latest cvs HEAD, "make distclean" fails as follows:
>
> This is known, and a bug report about it has been sent to the automake maintainers. No reaction yet, though.
Even if it is a automake's bug, I guess chances are rather low that
it will be fixed anytime soon. And anyway, interdependence among
subdirectories (src and docs) may better be avoided if possible.
Another problem in the current build system is that the version
number is specified in three different files:
VERSION 5.1
configure.ac AC_INIT([gnuplot],[5.1])
src/version.c const char gnuplot_version[] = "5.1";
The attached patch is an *example* of how to fix these two problems.
With the patch, the version number need be specified only in the
file VERSION. The argument of AC_INIT() is set by using
m4_esyscmd_s([cat VERSION])).
# Another possibility is to specify the version number directly in
# configure.ac and discard the file VERSION.
The version number is then passed to src/version.c and
docs/windows/doc2html.c by adding
-DGNUPLOT_VERSION='"$(VERSION)"'
to CPPFLAGS in the {src,docs}/Makefile.am.
Another possibility is to add a template file "version.h.in" containing
#define GNUPLOT_VERSION "@VERSION@"
and generate version.h by configure. Then version.c and doc2html.c can
#include the generated header file.
Or there may be still more possibilities.
|