I made extensive changes to the Makefile.am in order to have all the commands below working (in any order):
I made extensive changes to the Makefile.am in order to have all the
commands below working (in any order):

    make
    make clean
    make maintainer-clean
    make dist

I hope that I did not break anything, and I will document here the changes
in detail, such that Tom can check whether they are okay:

1) Put the automake conditionals "if enable_python" and "if enable_pygcw"
   only around the objects to be built.  This is necessary because the two
   files that must to go into the tarball (cplplotcanvas.c and
   plplotcanvas.defs) were not being built from a fresh cvs checkout and
   "./configure ; make dist".  The problem is that their rules and
   dependencies were inside the conditional and configure set enable_gcw=no
   by default.

   Let me digress a little bit about how Automake works, just to make clear
   why the change above is both necessary for make dist and harmfull when
   specifying --enable-gcw=no.  There are two types of Automake variables:
   to-be-built objects (variables finishing in _PROGRAM, _LTLIBRARIES,
   _DATA, for instance) and dependencies and compiler declarations (like
   _SOURCES and _LDFLAGS).  Only the former ones need to be put inside
   Automake conditionals.  The later can be outside Automake conditionals
   because they do not trigger, per se, any compilation.

2) Avoid the creation of tmp.defs by piping the output of h2def.py directly
   to the sed command.

4) Restored MAINTAINERCLEANFILES with the list of files that are effectively
   created by the maintainer and must be included in the distribution tarball
   (such that users do not need to generate them).

5) Removed completely CLEANFILES

svn path=/trunk/; revision=6024

FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot