Print this page
manpage lint.

Split Close
Expand all
Collapse all
          --- old/usr/src/man/Makefile.man
          +++ new/usr/src/man/Makefile.man
↓ open down ↓ 6 lines elided ↑ open up ↑
   7    7  # A full copy of the text of the CDDL should have accompanied this
   8    8  # source.  A copy of the CDDL is also available via the Internet
   9    9  # at http://www.illumos.org/license/CDDL.
  10   10  #
  11   11  
  12   12  #
  13   13  # Copyright 2011, Richard Lowe
  14   14  # Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
  15   15  #
  16   16  
       17 +MANDOC=         $(ROOT)/usr/bin/mandoc
  17   18  ROOTMAN=        $(ROOT)/usr/share/man
  18   19  ROOTHASMAN=     $(ROOT)/usr/has/man
  19      -
  20   20  FILEMODE=       0444
  21   21  
  22   22  # The manual section being built, client Makefiles must set this to, for e.g.
  23   23  # "3perl", with case matching that of the section name as installed.
  24   24  #
  25   25  # MANSECT=
  26   26  
       27 +MANCHECKS=      $(MANFILES:%=%.check)
  27   28  ROOTMANFILES=   $(MANFILES:%=$(ROOTMAN)/man$(MANSECT)/%)
  28   29  ROOTMANLINKS=   $(MANLINKS:%=$(ROOTMAN)/man$(MANSECT)/%)
  29   30  
  30   31  $(ROOTMAN)/man$(MANSECT)/% $(ROOTHASMAN)/man$(MANSECT)/%: %
  31   32                  $(INS.file)
  32   33  
       34 +$(MANCHECKS):
       35 +                $(MANDOC) -Tlint $(@:%.check=%)
       36 +
  33   37  $(MANLINKS):
  34   38                  $(RM) $@; $(SYMLINK) $(LINKSRC) $@
  35   39  
  36   40  $(ROOTMANLINKS): $(MANLINKS)
  37   41                  $(RM) $@; $(CP) -RP $(@F) $(@D)
  38   42  
  39   43  all:
  40   44  
       45 +check:          $(MANCHECKS)
       46 +
  41   47  clean:
  42   48  
  43   49  clobber:
  44   50                  $(RM) $(MANLINKS)
  45   51  
  46   52  .PARALLEL:
  47   53  
  48   54  FRC:
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX