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