Print this page
Tweaks per Hans.
Add check target by default.  Fix packaging.  And make check output match
hdrchk, etc.

Split Close
Expand all
Collapse all
          --- old/usr/src/man/Makefile.man
          +++ new/usr/src/man/Makefile.man
↓ open down ↓ 24 lines elided ↑ open up ↑
  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   34  $(MANCHECKS):
       35 +                @$(ECHO) "checking $(@:%.check=%)"; \
  35   36                  $(MANDOC) -Tlint $(@:%.check=%)
  36   37  
  37   38  $(MANLINKS):
  38   39                  $(RM) $@; $(SYMLINK) $(LINKSRC) $@
  39   40  
  40   41  $(ROOTMANLINKS): $(MANLINKS)
  41   42                  $(RM) $@; $(CP) -RP $(@F) $(@D)
  42   43  
  43   44  all:
  44   45  
  45   46  check:          $(MANCHECKS)
  46   47  
  47   48  clean:
  48   49  
  49   50  clobber:
  50   51                  $(RM) $(MANLINKS)
  51   52  
  52   53  .PARALLEL:
  53   54  
  54   55  FRC:
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX