1 #
   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 
  26 PROG= profile .login ksh.kshrc system
  27 PROGSKEL= local.login local.profile local.cshrc .profile
  28 PROGROOT= .profile .bashrc
  29 
  30 include ../Makefile.cmd
  31 
  32 ROOTROOT= $(ROOT)/root
  33 ROOTETCCSH= $(ROOTETC)/csh
  34 ROOTETCCSHLOGIND= $(ROOTETC)/csh/login.d
  35 ROOTETCPROFILED= $(ROOTETC)/profile.d
  36 ROOTETCSKEL= $(ROOTETC)/skel
  37 ROOTETCSKELPROG= $(PROGSKEL:%=$(ROOTETCSKEL)/%)
  38 ROOTROOTPROG= $(PROGROOT:%=$(ROOTROOT)/%)
  39 FILEMODE= 0644
  40 
  41 CLOBBERFILES = profile .bashrc .profile .login
  42 
  43 .login: login.csh
  44         $(RM) .login; 
  45         $(CP) login.csh .login
  46 
  47 profile: etc-profile.sh
  48         $(RM) profile
  49         $(CP) etc-profile.sh $@
  50 
  51 .profile: dot-profile.sh
  52         $(RM) .profile
  53         $(CP) dot-profile.sh $@
  54 
  55 .bashrc: bashrc.sh
  56         $(RM) .bashrc
  57         $(CP) bashrc.sh $@
  58 
  59 .KEEP_STATE:
  60 
  61 all: $(PROG) $(PROGSKEL)
  62 
  63 $(ROOTROOT)/% \
  64 $(ROOTETCSKEL)/%: %
  65         $(INS.file)
  66 
  67 $(ROOTROOT) \
  68 $(ROOTETCCSH) \
  69 $(ROOTETCCSHLOGIND) \
  70 $(ROOTETCPROFILED) \
  71 $(ROOTETCSKEL):
  72         $(INS.dir)
  73 
  74 install: all $(ROOTETCCSH) $(ROOTETCCSHLOGIND)  $(ROOTETCPROFILED) $(ROOTETCSKEL) $(ROOTETCPROG) $(ROOTETCSKELPROG) $(ROOTROOTPROG)
  75 
  76 clean:
  77 
  78 clobber:
  79         $(RM) $(CLOBBERFILES)
  80 
  81 lint: