xref: /titanic_44/usr/src/cmd/initpkg/init.d/Makefile (revision 4b92079ba1c38eb015d4df99305947dbeccbb80d)
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#
23# Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
24# Copyright 2014 Garrett D'Amore <garrett@damore.org>
25# Copyright 2015 Nexenta Systems, Inc. All rights reserved.
26#
27
28include		../../Makefile.cmd
29
30sparc_PROG=
31i386_PROG=
32
33PROG=		\
34	README		\
35	cachefs.daemon	\
36	sysetup		\
37	uucp		\
38	$($(MACH)_PROG)
39
40
41OTHERPROG=	README.rcS README.rc2 README.rc3
42
43ROOTETCINITD=		$(ROOTETC)/init.d
44ROOTETCRCSD=		$(ROOTETC)/rcS.d
45ROOTETCRC0D=		$(ROOTETC)/rc0.d
46ROOTETCRC1D=		$(ROOTETC)/rc1.d
47ROOTETCRC2D=		$(ROOTETC)/rc2.d
48ROOTETCRC3D=		$(ROOTETC)/rc3.d
49
50DIRS=	$(ROOTETCINITD) \
51	$(ROOTETCRCSD) \
52	$(ROOTETCRC0D) \
53	$(ROOTETCRC1D) \
54	$(ROOTETCRC2D) \
55	$(ROOTETCRC3D)
56
57ROOTETCINITDPROG=	$(PROG:%=$(ROOTETCINITD)/%)
58
59DIRMODE = 0755
60FILEMODE = 0744
61$(ROOTETCINITD)/README :=	FILEMODE = 0644
62$(ROOTETCRCSD)/README :=	FILEMODE = 0644
63$(ROOTETCRC2D)/README :=	FILEMODE = 0644
64$(ROOTETCRC3D)/README :=	FILEMODE = 0644
65
66.KEEP_STATE:
67
68all:		$(PROG)
69
70# Don't re-install directories already installed by Targetdirs
71#$(DIRS):
72#		$(INS.dir)
73
74$(ROOTETCINITD)/%:	%
75		$(INS.file)
76
77$(ROOTETCRCSD)/%:	%.rcS
78		$(INS.rename)
79
80$(ROOTETCRC2D)/%:	%.rc2
81		$(INS.rename)
82
83$(ROOTETCRC3D)/%:	%.rc3
84		$(INS.rename)
85
86install:	all $(ROOTETCINITDPROG) \
87		$(ROOTETCRCSD)/README \
88		$(ROOTETCRC2D)/README \
89		$(ROOTETCRC3D)/README
90
91lint:
92
93clean:
94
95clobber:
96