Is there a more elegant way of dealing with man pages other then:
$(MANDIR)/man1/%.1: %.1
$(INSTALL) -v -m664 $(<) $(@)
$(MANDIR)/man2/%.2: %.2
$(INSTALL) -v -m664 $(<) $(@)
$(MANDIR)/man3/%.3: %.3
$(INSTALL) -v -m664 $(<) $(@)
.
.
.
.
$(MANDIR)/man9/%.9: %.9
$(INSTALL) -v -m664 $(<) $(@)
I hoped to do something like:
$(MAN_TARGETS): $(notdir $(@))
$(INSTALL) -v -m664 $(notdir $(@)) $(@)
But gmake doesn't treat the $(notdir $(@)) like a dependency (just as
the documentation says it won't).
It would be really cool if I could do:
$(MANDIR)/man(\d)/(.*).(\d): $2.$3
$(INSTALL) -v -m664 $(<) $(@)
But that's just perl-influenced wishing. ;-)
Michael Sterrett
-Mr. Bones.-
[EMAIL PROTECTED]