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