Print this page
Want projadd, projdel and projmod in C.

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/projadd/Makefile
          +++ new/usr/src/cmd/projadd/Makefile
↓ open down ↓ 11 lines elided ↑ open up ↑
  12   12  #
  13   13  # When distributing Covered Code, include this CDDL HEADER in each
  14   14  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15  # If applicable, add the following below this CDDL HEADER, with the
  16   16  # fields enclosed by brackets "[]" replaced with your own identifying
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
  21   21  #
  22      -# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
       22 +# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
  25   25  # cmd/projadd/Makefile
  26   26  #
  27   27  
  28   28  include ../Makefile.cmd
  29   29  
  30      -PROGS= projadd projmod projdel
  31      -USRSBINPROGS= $(PROGS:%=$(ROOTUSRSBIN)/%)
  32      -POFILES= $(PROGS:%=%.po)
       30 +SUBDIRS=        projadd projmod projdel projtest
  33   31  
  34      -# No msg catalog here.
  35      -POFILE=
       32 +all :=          TARGET = all
       33 +install :=      TARGET = install
       34 +clean :=        TARGET = clean
       35 +clobber :=      TARGET = clobber
       36 +lint :=         TARGET = lint
       37 +_msg :=         TARGET = _msg
  36   38  
  37      -CLOBBERFILES += $(PROGS)
  38      -
  39   39  .KEEP_STATE:
  40   40  
  41      -all: $(PROGS)
       41 +all install lint clean clobber _msg: $(SUBDIRS)
  42   42  
  43      -install : all .WAIT $(USRSBINPROGS)
       43 +$(SUBDIRS): FRC
       44 +        @cd $@; pwd; $(MAKE) $(MFLAGS) $(TARGET)
  44   45  
  45      -clean lint:
  46      -
  47      -_msg: $(MSGDOMAIN) $(POFILES)
  48      -        $(CP) $(POFILES) $(MSGDOMAIN)
  49      -
  50      -$(MSGDOMAIN):
  51      -        $(INS.dir)
  52      -
  53      -clobber: clean
  54      -        $(RM) $(PROG) $(CLOBBERFILES)
  55      -
  56      -$(ROOTUSRSBIN)/% : %
  57      -        $(INS.file)
       46 +FRC:
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX