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