On 26 September 2010 12:34, Simon Josefsson <[email protected]> wrote: > Reuben Thomas <[email protected]> writes: > >> Given the example rule, the cyclo-${PACKAGE}.html file must be deleted >> in order to be remade, as the rule's target is itself >> cyclo-${PACKAGE}.html, with no dependencies. It would be more useful >> if either the rule depended on the sources (best), or if the target of >> the rule were, say, simply "cyclo", so that it was always remade. >> >> Opinions? > > I'd prefer the first approach. Unconditionally invoking a rule like > this may leads to problem if the user doesn't have the necessary tool, > and the file is up to date anyway.
OK, suitable rule attached. I used a variable to hold the name of the source files because POSIX make doesn't support $+ or $^, at least, according to make(1posix). This time my patch includes a real ChangeLog entry! -- http://rrt.sc3d.org
0001-Make-pmccabe2html-cyclo-HTML-be-rebuilt-when-sources.patch
Description: Binary data
