Print this page
3395 add /etc/profile.d and /etc/.login.d
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/nsadmin/Makefile
+++ new/usr/src/cmd/nsadmin/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
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 22 # Copyright 2010 Sun Microsystems, Inc. All rights reserved.
↓ open down ↓ |
22 lines elided |
↑ open up ↑ |
23 23 # Use is subject to license terms.
24 24 #
25 25
26 26 PROG= profile .login ksh.kshrc system
27 27 PROGSKEL= local.login local.profile local.cshrc .profile
28 28 PROGROOT= .profile .bashrc
29 29
30 30 include ../Makefile.cmd
31 31
32 32 ROOTROOT= $(ROOT)/root
33 +ROOTETCCSH= $(ROOTETC)/csh
34 +ROOTETCCSHLOGIND= $(ROOTETC)/csh/login.d
35 +ROOTETCPROFILED= $(ROOTETC)/profile.d
33 36 ROOTETCSKEL= $(ROOTETC)/skel
34 37 ROOTETCSKELPROG= $(PROGSKEL:%=$(ROOTETCSKEL)/%)
35 38 ROOTROOTPROG= $(PROGROOT:%=$(ROOTROOT)/%)
36 39 FILEMODE= 0644
37 40
38 41 CLOBBERFILES = profile .bashrc .profile .login
39 42
40 43 .login: login.csh
41 44 $(RM) .login;
42 45 $(CP) login.csh .login
43 46
44 47 profile: etc-profile.sh
45 48 $(RM) profile
46 49 $(CP) etc-profile.sh $@
47 50
48 51 .profile: dot-profile.sh
49 52 $(RM) .profile
50 53 $(CP) dot-profile.sh $@
51 54
52 55 .bashrc: bashrc.sh
53 56 $(RM) .bashrc
54 57 $(CP) bashrc.sh $@
↓ open down ↓ |
12 lines elided |
↑ open up ↑ |
55 58
56 59 .KEEP_STATE:
57 60
58 61 all: $(PROG) $(PROGSKEL)
59 62
60 63 $(ROOTROOT)/% \
61 64 $(ROOTETCSKEL)/%: %
62 65 $(INS.file)
63 66
64 67 $(ROOTROOT) \
68 +$(ROOTETCCSH) \
69 +$(ROOTETCCSHLOGIND) \
70 +$(ROOTETCPROFILED) \
65 71 $(ROOTETCSKEL):
66 72 $(INS.dir)
67 73
68 -install: all $(ROOTETCSKEL) $(ROOTETCPROG) $(ROOTETCSKELPROG) $(ROOTROOTPROG)
74 +install: all $(ROOTETCCSH) $(ROOTETCCSHLOGIND) $(ROOTETCPROFILED) $(ROOTETCSKEL) $(ROOTETCPROG) $(ROOTETCSKELPROG) $(ROOTROOTPROG)
69 75
70 76 clean:
71 77
72 78 clobber:
73 79 $(RM) $(CLOBBERFILES)
74 80
75 81 lint:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX