8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / cmd-inet / etc / Makefile
blob2336c5af1d5fce430fd5e1a3b44655799a5242b7
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
21 # Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
23 SYMPROG= hosts inetd.conf networks protocols services netmasks
25 # New /etc/inet files shouldn't have /etc entries.
26 EDITPROG= ipaddrsel.conf ipsecalgs
27 PROG= datemsk.ndpd ipsecinit.sample ipqosconf.1.sample ipqosconf.2.sample \
28 ipqosconf.3.sample wanboot.conf.sample
29 ETCPROG= $(SYMPROG) $(EDITPROG) $(PROG)
30 SUBDIRS= default dhcp init.d ike nca ppp secret sock2path.d
32 include ../../Makefile.cmd
34 all:= TARGET= all
35 install:= TARGET= install
37 ROOTVAR= $(ROOT)/var
38 INETETCDIR= $(ROOTETC)/inet
39 INETVARDIR= $(ROOTVAR)/inet
40 DIRS= $(INETETCDIR) $(INETVARDIR)
41 SYMDIR= inet
42 ETCINETPROG= $(ETCPROG:%=$(INETETCDIR)/%)
43 EDITFILES= $(SYMPROG:%=$(INETETCDIR)/%) $(EDITPROG:%=$(INETETCDIR)/%)
44 # Only old /etc/inet files get symlinks in /etc.
45 SYMETCPROG= $(SYMPROG:%=sym_%)
46 SYMIPNODES= $(INETETCDIR)/ipnodes
48 FILEMODE= 0444
50 .KEEP_STATE:
52 $(EDITFILES) := FILEMODE= 0644
54 all: $(ETCPROG) $(SUBDIRS)
56 install: all $(DIRS) $(ETCINETPROG) $(SYMETCPROG) $(SYMIPNODES) $(SUBDIRS)
58 $(SYMIPNODES) :
59 $(RM) $@
60 $(SYMLINK) ./hosts $@
62 $(INETETCDIR)/% : %
63 $(INS.file)
65 sym_% : %
66 $(RM) $(ROOTETC)/$<
67 $(SYMLINK) $(SYMDIR)/$< $(ROOTETC)/$<
69 $(DIRS):
70 $(INS.dir)
72 $(SUBDIRS): FRC $(DIRS)
73 @cd $@; pwd; $(MAKE) $(TARGET)
75 FRC:
77 # datemsk.ndpd is generated from datemsk.template because of a side-effect of
78 # SCCS. Some of the datemsk.ndpd format strings include "%<letter>%", which
79 # SCCS confuses for ID keywords. datemsk.template should quote the "%"
80 # with "\" and code below will filter out the "\". Only datemsk.ndpd format
81 # strings next to each other need to be quoted.
83 datemsk.ndpd: datemsk.template
84 @while read i; do echo $$i; done < datemsk.template > $@
86 clean clobber:
87 $(RM) datemsk.ndpd
89 lint: