xref: /titanic_52/usr/src/lib/brand/Makefile.brand (revision 80e2ca8596e3435bc3b76f3c597833ea0a87f85e)
19acbbeafSnn35248#
29acbbeafSnn35248# CDDL HEADER START
39acbbeafSnn35248#
49acbbeafSnn35248# The contents of this file are subject to the terms of the
59acbbeafSnn35248# Common Development and Distribution License (the "License").
69acbbeafSnn35248# You may not use this file except in compliance with the License.
79acbbeafSnn35248#
89acbbeafSnn35248# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
99acbbeafSnn35248# or http://www.opensolaris.org/os/licensing.
109acbbeafSnn35248# See the License for the specific language governing permissions
119acbbeafSnn35248# and limitations under the License.
129acbbeafSnn35248#
139acbbeafSnn35248# When distributing Covered Code, include this CDDL HEADER in each
149acbbeafSnn35248# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
159acbbeafSnn35248# If applicable, add the following below this CDDL HEADER, with the
169acbbeafSnn35248# fields enclosed by brackets "[]" replaced with your own identifying
179acbbeafSnn35248# information: Portions Copyright [yyyy] [name of copyright owner]
189acbbeafSnn35248#
199acbbeafSnn35248# CDDL HEADER END
209acbbeafSnn35248#
219acbbeafSnn35248#
22*80e2ca85S# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
239acbbeafSnn35248#
249acbbeafSnn35248
259acbbeafSnn35248include $(SRC)/Makefile.master
269acbbeafSnn35248
279acbbeafSnn35248ROOTDIR=	$(ROOT)/usr/lib/brand
289acbbeafSnn35248ROOTTEMPLATEDIR=	$(ROOT)/etc/zones
299acbbeafSnn35248ROOTBRANDDIR=	$(ROOTDIR)/$(BRAND)
309acbbeafSnn35248ROOTBRANDDIR64=	$(ROOTDIR)/$(BRAND)/$(MACH64)
31edfa49ffSROOTSHAREDDIR=	$(ROOTDIR)/shared
32e71ca95cSGerald JelinekETCBRANDDIR=	$(ROOT)/etc/brand/$(BRAND)
339acbbeafSnn35248
349acbbeafSnn35248ROOTPROGS=	$(PROGS:%=$(ROOTBRANDDIR)/%)
359acbbeafSnn35248ROOTTXTS=	$(TXTS:%=$(ROOTBRANDDIR)/%)
369acbbeafSnn35248ROOTXMLDOCS=	$(XMLDOCS:%=$(ROOTBRANDDIR)/%)
37edfa49ffSROOTSHARED=	$(SHARED:%=$(ROOTSHAREDDIR)/%)
38e71ca95cSGerald JelinekETCUSER=	$(USERFILES:%=$(ETCBRANDDIR)/%)
399acbbeafSnn35248
40*80e2ca85SBRAND_SHARED=	$(SRC)/lib/brand/shared
41*80e2ca85S
429acbbeafSnn35248ROOTTEMPLATES=	$(TEMPLATES:%=$(ROOTTEMPLATEDIR)/%)
439acbbeafSnn35248
449acbbeafSnn35248$(ROOTBRANDDIR) :=	FILEMODE = 755
459acbbeafSnn35248
469acbbeafSnn35248$(ROOTXMLDOCS) :=	FILEMODE = 444
479acbbeafSnn35248
48e71ca95cSGerald Jelinek$(ROOTSHARED) :=	FILEMODE = 755
49edfa49ffS
509acbbeafSnn35248$(ROOTTEMPLATEDIR) :=	FILEMODE = 755
519acbbeafSnn35248
529acbbeafSnn35248$(ROOTTEMPLATES) :=	FILEMODE = 444
539acbbeafSnn35248
549acbbeafSnn35248$(ROOTTXTS) :=	FILEMODE = 444
559acbbeafSnn35248
569acbbeafSnn35248$(ROOTPROGS) :=	FILEMODE = 755
579acbbeafSnn35248
58e71ca95cSGerald Jelinek$(ROOTBRANDDIR)/% $(ROOTBRANDDIR64)/% $(ROOTTEMPLATEDIR)/% $(ROOTSHAREDDIR)/% $(ETCBRANDDIR)/%: %
599acbbeafSnn35248	$(INS.file)
609acbbeafSnn35248
61e71ca95cSGerald Jelinek$(ETCUSER) :=	FILEMODE = 644
62e71ca95cSGerald Jelinek$(ETCUSER) :=	OWNER = root
63e71ca95cSGerald Jelinek$(ETCUSER) :=	GROUP = sys
64e71ca95cSGerald Jelinek
659acbbeafSnn35248.SUFFIXES:	.ksh
669acbbeafSnn35248
679acbbeafSnn35248.ksh:
689acbbeafSnn35248	$(RM) $@
699acbbeafSnn35248	$(CAT) $< > $@
709acbbeafSnn35248	$(CHMOD) +x $@
71