Re: releasing 1.9 soon...



On Mon, Sep 17, 2007 at 06:58:21PM +0200, David Nečas (Yeti) wrote:
> This does not work either...

A method that has a good chance to work:

  Do not try to parse SCAN_OPTIONS and let the user add the
  files to DISTCLEANFILES (gtk-doc.make does not use it
  internally) manually.

  Happily copy everything to $(distdir) in the dist hook and
  then do something like

    cd $(distdir) && rm -f $(DISTCLEANFILES)

  in the dist hook (putting the files in DISTCLEANFILES
  already takes care of cleaning them in distclean).

  Although DISTCLEANFILES can in principle contain all kinds
  of shell code too, it is quite unlikely to contain
  anything fragile because people cannot be sure precisely
  how automake uses it.

An advantage of this approach is its universality: The user
does not want to distribute some files -- any files -- so he
adds them to DISTCLEANFILES.  And that's all, they are
correctly dist-cleaned and excluded from distribution.

Yeti

--
http://gwyddion.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]