xref: /illumos-gate/usr/src/cmd/netadm/etc/Makefile (revision 24fe0b3b)
11d925b36Smcwalter#
21d925b36Smcwalter# CDDL HEADER START
31d925b36Smcwalter#
41d925b36Smcwalter# The contents of this file are subject to the terms of the
51d925b36Smcwalter# Common Development and Distribution License (the "License").
61d925b36Smcwalter# You may not use this file except in compliance with the License.
71d925b36Smcwalter#
81d925b36Smcwalter# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
91d925b36Smcwalter# or http://www.opensolaris.org/os/licensing.
101d925b36Smcwalter# See the License for the specific language governing permissions
111d925b36Smcwalter# and limitations under the License.
121d925b36Smcwalter#
131d925b36Smcwalter# When distributing Covered Code, include this CDDL HEADER in each
141d925b36Smcwalter# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
151d925b36Smcwalter# If applicable, add the following below this CDDL HEADER, with the
161d925b36Smcwalter# fields enclosed by brackets "[]" replaced with your own identifying
171d925b36Smcwalter# information: Portions Copyright [yyyy] [name of copyright owner]
181d925b36Smcwalter#
191d925b36Smcwalter# CDDL HEADER END
201d925b36Smcwalter#
21*24fe0b3bSjmcp# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
221d925b36Smcwalter# Use is subject to license terms.
231d925b36Smcwalter#
241d925b36Smcwalter# Makefile for /etc/flash/
251d925b36Smcwalter#
261d925b36Smcwalter#
271d925b36Smcwalter# cmd/netadm/etc/Makefile
281d925b36Smcwalter
291d925b36Smcwalterinclude ../../Makefile.cmd
301d925b36Smcwalter
311d925b36SmcwalterFLASHTTYDEFS= ttydefs.cleanup.sh
321d925b36SmcwalterFLASHPOSTPROG= $(FLASHTTYDEFS:%.sh=%)
331d925b36Smcwalter
341d925b36SmcwalterETCFLASHD=	$(ROOTETC)/flash
351d925b36SmcwalterETCFLASHPOSTD=	$(ROOTETC)/flash/postdeployment
361d925b36Smcwalter
371d925b36SmcwalterDIRS=	$(ETCFLASHD) $(ETCFLASHPOSTD)
381d925b36Smcwalter
391d925b36SmcwalterETCFLASHPOSTPROG= $(FLASHPOSTPROG:%=$(ETCFLASHPOSTD)/%)
401d925b36Smcwalter
411d925b36Smcwalter$(ETCFLASHD) :=	DIRMODE=	755
421d925b36Smcwalter$(ETCFLASHPOSTD) :=	DIRMODE=	755
431d925b36Smcwalter$(ETCFLASHPOSTPROG) :=	FILEMODE=       0744
441d925b36Smcwalter
451d925b36Smcwalter.KEEP_STATE:
461d925b36Smcwalter
471d925b36Smcwalterall:  $(FLASHPOSTPROG)
481d925b36Smcwalter
491d925b36Smcwalterinstall: all .WAIT $(DIRS) .WAIT $(ETCFLASHPOSTPROG)
501d925b36Smcwalter
511d925b36Smcwaltercstyle:
521d925b36Smcwalter
531d925b36Smcwalterlint:
541d925b36Smcwalter
551d925b36Smcwalter$(DIRS):
561d925b36Smcwalter	$(INS.dir)
571d925b36Smcwalter
581d925b36Smcwalter$(ETCFLASHPOSTD)/% : %
591d925b36Smcwalter	$(INS.file)
601d925b36Smcwalter
611d925b36Smcwalterclean:
621d925b36Smcwalter	$(RM) $(FLASHPOSTPROG)
63