Quoting Russ Allbery <[EMAIL PROTECTED]>:

Jim Rees <[EMAIL PROTECTED]> 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
      [EMAIL PROTECTED]                        PGP key available

_______________________________________________
OpenAFS-devel mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-devel

Reply via email to