"make distclean" fails with cvs HEAD

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

"make distclean" fails with cvs HEAD

Jun T.
With the latest cvs HEAD, "make distclean" fails as follows:

-----
Making distclean in docs
Makefile:554: ../src/.deps/doc2wxhtml-version.Po: No such file or directory
make[1]: *** No rule to make target `../src/.deps/doc2wxhtml-version.Po'.  Stop.
make: *** [distclean-recursive] Error 1
-----

The line 554 of docs/Makefile is:
include ../src/$(DEPDIR)/doc2wxhtml-version.Po

In revision 1.26, Makefile.am has been modified so that the rule for
doc2wxhtml is generated by automake. But automake places the
generated dependency file doc2wxhtml-version.Po in src/.deps/ (not
docs/.deps/) since the source file version.c is under src/.
So docs/Makefile includes src/.deps/doc2wxhtml-version.Po,
but the directory src/.deps/ has been already removed when
"make distclean" is called for the directory src/.

I'm using automake-1.13.1 and autoconf-2.69.
------------------------------------------------------------------------------
_______________________________________________
gnuplot-beta mailing list
[hidden email]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
Reply | Threaded
Open this post in threaded view
|

Re: "make distclean" fails with cvs HEAD

Hans-Bernhard Bröker-2
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.

------------------------------------------------------------------------------
_______________________________________________
gnuplot-beta mailing list
[hidden email]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
Reply | Threaded
Open this post in threaded view
|

Re: "make distclean" fails with cvs HEAD

Jun T.

2015/06/06 03:02, Hans-Bernhard Bröker <[hidden email]> 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.


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
gnuplot-beta mailing list
[hidden email]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-beta

version.patch (4K) Download Attachment