[OpenAFS-devel] pod2man vandalism

Derek Atkins warlord@MIT.EDU
Tue, 20 Dec 2005 18:19:35 -0500


Quoting Russ Allbery <rra@stanford.edu>:

> Jim Rees <rees@umich.edu> writes:
>
>> Another reason to do this in a Makefile is that it currently rebuilds
>> everything (right?) even if it doesn't have to.
>
> One of the main points of make is exactly to not do that.  :)
>
> The problem with doing this purely as a Makefile rule, rather than as a
> similar script in the Makefile which would probably be an improvement, is
> that there's no way to do this sort of mass conversion cleanly without
> either listing all of the man pages again in the Makefile (an annoying
> maintenance problem) or using GNU make features.  That's why I tend to use
> for loops instead.

Why not just have the shell script (regen?) supply the list of files on
the command line when it calls make?  E.g.:

   make PODFILES="`find . -name \*.pod`"

Works great in all versions of make and doesn't depend on GnuMake.

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord@MIT.EDU                        PGP key available