xref: /titanic_44/usr/src/cmd/cmd-inet/etc/ppp/Makefile (revision 24db46411fd54f70c35b94bb952eb7ba040e43b4)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23#ident	"%Z%%M%	%I%	%E% SMI"
24#
25# Copyright (c) 2000 by Sun Microsystems, Inc.
26# All rights reserved.
27#
28# cmd/cmd-inet/etc/ppp/Makefile
29#
30
31PPPDIR=		ppp
32PEERSDIR=	peers
33ETCPROGROOT=	pap-secrets	chap-secrets
34ETCPROG=	options.tmpl options.ttya.tmpl myisp-chat.tmpl
35ETCPEERS=	myisp.tmpl
36
37include ../../../Makefile.cmd
38
39ETCPPPDIR=	$(ROOTETC)/$(PPPDIR)
40ETCPEERSDIR=	$(ETCPPPDIR)/$(PEERSDIR)
41ETCPPPPROG=	$(ETCPROG:%=$(ETCPPPDIR)/%) $(ETCPEERS:%=$(ETCPEERSDIR)/%)
42ETCPPPPROGROOT=	$(ETCPROGROOT:%=$(ETCPPPDIR)/%)
43
44OWNER=		root
45GROUP=		sys
46
47# This is here to allow the make command to override this value;
48# setting it to 0644 simplifies packaging.
49SECRETSMODE=	0600
50
51$(ETCPPPPROG)		:=	FILEMODE = 0644
52$(ETCPPPPROGROOT)	:=	FILEMODE = $(SECRETSMODE)
53
54.KEEP_STATE:
55
56all:
57
58install:	all $(ETCPPPDIR) $(ETCPEERSDIR) \
59		$(ETCPPPPROG) $(ETCPPPPROGROOT)
60
61$(ETCPPPDIR)/% : %
62		$(INS.file)
63
64$(ETCPPPDIR):
65		$(INS.dir)
66
67$(ETCPEERSDIR)/% : %
68		$(INS.file)
69
70$(ETCPEERSDIR):
71		$(INS.dir)
72
73FRC:
74
75clean clobber lint:
76