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