xref: /onnv-gate/usr/src/cmd/Adm/sun/Makefile (revision 12041:03c4bd206296)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
55331Samw# Common Development and Distribution License (the "License").
65331Samw# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
210Sstevel@tonic-gate#
22*12041SJohn.Beck@Sun.COM# Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
230Sstevel@tonic-gate#
240Sstevel@tonic-gate
250Sstevel@tonic-gateETCFILES= ioctl.syscon passwd shadow motd
260Sstevel@tonic-gateKVMFILES= README
275331SamwSMBFILES= smbpasswd
280Sstevel@tonic-gate
290Sstevel@tonic-gateinclude ../../Makefile.cmd
300Sstevel@tonic-gate
310Sstevel@tonic-gateROOTETCFILES= $(ETCFILES:%=$(ROOTETC)/%)
320Sstevel@tonic-gateROOTUSRKVMFILES= $(KVMFILES:%=$(ROOTUSRKVM)/%)
335331SamwROOTVARSMBFILES= $(SMBFILES:%=$(ROOTVARSMB)/%)
340Sstevel@tonic-gate
350Sstevel@tonic-gateFILEMODE= 0644
360Sstevel@tonic-gate
3710207SJames.McPherson@Sun.COM$(ROOTETC)/shadow 	:=	FILEMODE =	400
385331Samw$(ROOTVARSMB)/smbpasswd :=	FILEMODE =	0400
390Sstevel@tonic-gate
400Sstevel@tonic-gate.KEEP_STATE:
410Sstevel@tonic-gate
425331Samwall: $(ETCFILES) $(KVMFILES) $(SMBFILES)
430Sstevel@tonic-gate
445331Samwinstall: all $(ROOTETCFILES) $(ROOTUSRKVMFILES) $(ROOTVARSMBFILES)
450Sstevel@tonic-gate
460Sstevel@tonic-gateclean:
470Sstevel@tonic-gate
480Sstevel@tonic-gatelint:
490Sstevel@tonic-gate
500Sstevel@tonic-gateclobber:
510Sstevel@tonic-gate
520Sstevel@tonic-gatemotd:	FRC
530Sstevel@tonic-gate	@-$(ECHO) "rebuilding motd"
54*12041SJohn.Beck@Sun.COM	@$(RELEASE_BUILD)-$(ECHO) "Oracle Corporation\tSunOS $(RELEASE)\t$(VERSION)\t$(RELEASE_DATE)" > motd
55*12041SJohn.Beck@Sun.COM	@$(NOT_RELEASE_BUILD)-$(ECHO) "Oracle Corporation\tSunOS $(RELEASE)\t$(VERSION)\t`date +'%h. %d, %Y'`" > motd
560Sstevel@tonic-gate	@$(NOT_RELEASE_BUILD)-$(ECHO) $(DEV_CM) | sed -e "s/@(#)//" >> motd
570Sstevel@tonic-gate	@-$(CAT) release_info >> motd
580Sstevel@tonic-gate
595331Samwsmbpasswd:
605331Samw	$(TOUCH) smbpasswd
615331Samw
620Sstevel@tonic-gateclean:
630Sstevel@tonic-gate
640Sstevel@tonic-gatelint:
650Sstevel@tonic-gate
660Sstevel@tonic-gateclobber:
675331Samw	$(RM) motd smbpasswd
680Sstevel@tonic-gate
690Sstevel@tonic-gateFRC:
70