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