xref: /titanic_44/usr/src/cmd/initpkg/init.d/Makefile (revision 9d0d62ad2e60e8f742a2e723d06e88352ee6a1f3)
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 2009 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26
27include		../../Makefile.cmd
28
29sparc_PROG=
30i386_PROG=
31
32PROG=		\
33	README		\
34	boot.server	\
35	cachefs.daemon	\
36	deallocate	\
37	devlinks	\
38	dhcp		\
39	drvconfig	\
40	init.snmpdx	\
41	ldap.client	\
42	mkdtab		\
43	nfs.server	\
44	nscd		\
45	pcmcia		\
46	sendmail	\
47	slpd		\
48	sysetup		\
49	uucp		\
50	$($(MACH)_PROG)
51
52
53OTHERPROG=	README.rcS README.rc2 README.rc3
54
55ROOTETCINITD=		$(ROOTETC)/init.d
56ROOTETCRCSD=		$(ROOTETC)/rcS.d
57ROOTETCRC0D=		$(ROOTETC)/rc0.d
58ROOTETCRC1D=		$(ROOTETC)/rc1.d
59ROOTETCRC2D=		$(ROOTETC)/rc2.d
60ROOTETCRC3D=		$(ROOTETC)/rc3.d
61
62DIRS=	$(ROOTETCINITD) \
63	$(ROOTETCRCSD) \
64	$(ROOTETCRC0D) \
65	$(ROOTETCRC1D) \
66	$(ROOTETCRC2D) \
67	$(ROOTETCRC3D)
68
69ROOTETCINITDPROG=	$(PROG:%=$(ROOTETCINITD)/%)
70
71DIRMODE = 0755
72FILEMODE = 0744
73$(ROOTETCINITD)/README :=	FILEMODE = 0644
74$(ROOTETCRCSD)/README :=	FILEMODE = 0644
75$(ROOTETCRC2D)/README :=	FILEMODE = 0644
76$(ROOTETCRC3D)/README :=	FILEMODE = 0644
77
78.KEEP_STATE:
79
80all:		$(PROG)
81
82# Don't re-install directories already installed by Targetdirs
83#$(DIRS):
84#		$(INS.dir)
85
86$(ROOTETCINITD)/%:	%
87		$(INS.file)
88
89$(ROOTETCRCSD)/%:	%.rcS
90		$(INS.rename)
91
92$(ROOTETCRC2D)/%:	%.rc2
93		$(INS.rename)
94
95$(ROOTETCRC3D)/%:	%.rc3
96		$(INS.rename)
97
98install:	all $(ROOTETCINITDPROG) \
99		$(ROOTETCRCSD)/README \
100		$(ROOTETCRC2D)/README \
101		$(ROOTETCRC3D)/README
102
103lint:
104
105clean:
106
107clobber:
108