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