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