Print this page
Add catman, makewhatis functionality.  Print an error if the whatis database
is missing.

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/man/Makefile
          +++ new/usr/src/cmd/man/Makefile
↓ 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 at
   9    9  # http://www.illumos.org/license/CDDL.
  10   10  #
  11   11  
  12   12  #
  13   13  # Copyright 2012 Nexenta Systems, Inc. All rights reserved.
  14   14  #
  15   15  
  16   16  PROG=           man
  17      -LINKS=          apropos whatis
       17 +LINKS=          apropos whatis catman
       18 +LIBLINKS =      makewhatis
  18   19  OBJS=           makewhatis.o man.o stringlist.o
  19   20  SRCS=           $(OBJS:%.o=%.c)
  20   21  
  21   22  include         $(SRC)/cmd/Makefile.cmd
  22   23  
  23   24  CFLAGS +=       $(CCVERBOSE)
  24   25  
  25      -ROOTLINKS=      $(LINKS:%=$(ROOTBIN)/%)
       26 +ROOTLINKS=      $(LINKS:%=$(ROOTBIN)/%) $(LIBLINKS:%=$(ROOTLIB)/%)
  26   27  
  27   28  .KEEP_STATE :
  28   29  
  29   30  all:            $(PROG)
  30   31  
  31   32  clean:
  32   33                  $(RM) $(OBJS)
  33   34  
  34   35  install:        all $(ROOTPROG) $(ROOTLINKS)
  35   36  
  36   37  lint:           lint_SRCS
  37   38  
  38   39  $(PROG):        $(OBJS)
  39   40                  $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
  40   41                  $(POST_PROCESS)
  41   42  
  42   43  $(ROOTLINKS):   $(ROOTPROG)
  43   44                  $(RM) $@; $(LN) $(ROOTPROG) $@
  44   45  
  45   46  include         $(SRC)/cmd/Makefile.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX