xref: /titanic_52/usr/src/cmd/initpkg/init.d/Makefile (revision d58fda4376e4bf67072ce2e69f6f47036f9dbb68)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2005 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	acctadm		\
37	boot.server	\
38	cachefs.daemon	\
39	deallocate	\
40	devlinks	\
41	dhcp		\
42	drvconfig	\
43	init.dmi	\
44	init.snmpdx	\
45	ldap.client	\
46	mkdtab		\
47	nfs.server	\
48	nscd		\
49	pcmcia		\
50	sendmail	\
51	slpd		\
52	sysetup		\
53	uucp		\
54	volmgt		\
55	$($(MACH)_PROG)
56
57
58OTHERPROG=	README.rcS README.rc2 README.rc3
59
60ROOTETCINITD=		$(ROOTETC)/init.d
61ROOTETCRCSD=		$(ROOTETC)/rcS.d
62ROOTETCRC0D=		$(ROOTETC)/rc0.d
63ROOTETCRC1D=		$(ROOTETC)/rc1.d
64ROOTETCRC2D=		$(ROOTETC)/rc2.d
65ROOTETCRC3D=		$(ROOTETC)/rc3.d
66
67DIRS=	$(ROOTETCINITD) \
68	$(ROOTETCRCSD) \
69	$(ROOTETCRC0D) \
70	$(ROOTETCRC1D) \
71	$(ROOTETCRC2D) \
72	$(ROOTETCRC3D)
73
74ROOTETCINITDPROG=	$(PROG:%=$(ROOTETCINITD)/%)
75
76DIRMODE = 0755
77FILEMODE = 0744
78$(ROOTETCINITD)/README :=	FILEMODE = 0644
79$(ROOTETCRCSD)/README :=	FILEMODE = 0644
80$(ROOTETCRC2D)/README :=	FILEMODE = 0644
81$(ROOTETCRC3D)/README :=	FILEMODE = 0644
82OWNER = root
83GROUP = sys
84
85.KEEP_STATE:
86
87all:		$(PROG)
88
89# Don't re-install directories already installed by Targetdirs
90#$(DIRS):
91#		$(INS.dir)
92
93$(ROOTETCINITD)/%:	%
94		$(INS.file)
95
96$(ROOTETCRCSD)/%:	%.rcS
97		$(INS.rename)
98
99$(ROOTETCRC2D)/%:	%.rc2
100		$(INS.rename)
101
102$(ROOTETCRC3D)/%:	%.rc3
103		$(INS.rename)
104
105install:	all $(ROOTETCINITDPROG) \
106		$(ROOTETCRCSD)/README \
107		$(ROOTETCRC2D)/README \
108		$(ROOTETCRC3D)/README
109
110lint:
111
112clean:
113
114clobber:
115