Print this page
5051 import mdocml-1.12.3
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Approved by: TBD

Split Close
Expand all
Collapse all
          --- old/usr/src/man/Makefile.man
          +++ new/usr/src/man/Makefile.man
↓ open down ↓ 23 lines elided ↑ open up ↑
  24   24  #
  25   25  # MANSECT=
  26   26  
  27   27  MANCHECKS=      $(MANFILES:%=%.check)
  28   28  ROOTMANFILES=   $(MANFILES:%=$(ROOTMAN)/man$(MANSECT)/%)
  29   29  ROOTMANLINKS=   $(MANLINKS:%=$(ROOTMAN)/man$(MANSECT)/%)
  30   30  
  31   31  $(ROOTMAN)/man$(MANSECT)/% $(ROOTHASMAN)/man$(MANSECT)/%: %
  32   32                  $(INS.file)
  33   33  
       34 +#
       35 +# Note that new mandoc adds some checks for lots of extra whitespace.
       36 +# We don't want to check our legacy pages for that.  There are thousands
       37 +# and thousands of them in our man pages.  Please still check them
       38 +# manually when editing (git pbchk will do so for you.)
       39 +#
  34   40  $(MANCHECKS):
  35      -                @$(ECHO) "checking $(@:%.check=%)"; \
  36      -                $(MANDOC) -Tlint $(@:%.check=%)
       41 +                @$(EGREP) -q "^.TH" $(@:%.check=%) || \
       42 +                ( $(ECHO) "checking $(@:%.check=%)"; \
       43 +                $(MANDOC) -Tlint $(@:%.check=%) )
  37   44  
  38   45  $(MANLINKS):
  39   46                  $(RM) $@; $(SYMLINK) $(LINKSRC) $@
  40   47  
  41   48  $(ROOTMANLINKS): $(MANLINKS)
  42   49                  $(RM) $@; $(CP) -RP $(@F) $(@D)
  43   50  
  44   51  all:
  45   52  
  46   53  check:          $(MANCHECKS)
  47   54  
  48   55  clean:
  49   56  
  50   57  clobber:
  51   58                  $(RM) $(MANLINKS)
  52   59  
  53   60  .PARALLEL:
  54   61  
  55   62  FRC:
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX