Makefile.targ revision 6b5e5868e7ebf1aff3a5abd7d0c4ef0e5fbf3648
4910N/A#
4910N/A# CDDL HEADER START
4910N/A#
4910N/A# The contents of this file are subject to the terms of the
4910N/A# Common Development and Distribution License (the "License").
4910N/A# You may not use this file except in compliance with the License.
4910N/A#
4910N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4910N/A# or http://www.opensolaris.org/os/licensing.
4910N/A# See the License for the specific language governing permissions
4910N/A# and limitations under the License.
4910N/A#
4910N/A# When distributing Covered Code, include this CDDL HEADER in each
4910N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4910N/A# If applicable, add the following below this CDDL HEADER, with the
4910N/A# fields enclosed by brackets "[]" replaced with your own identifying
4910N/A# information: Portions Copyright [yyyy] [name of copyright owner]
4910N/A#
4910N/A# CDDL HEADER END
4910N/A#
4910N/A#
4910N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5466N/A# Use is subject to license terms.
4910N/A#
4910N/A# cmd/Makefile.targ
4910N/A# common target definitions for command builds
4910N/A#
4910N/A
5182N/A#
4910N/A# Conditional assignment of default group/owner/permissions for SMF
4910N/A# manifests and method scripts.
4910N/A#
4910N/A$(ROOTMANIFEST) := FILEMODE= 444
5182N/A$(ROOTSVCBIN) := FILEMODE= 544
5182N/A
4910N/Aclobber: clean
4910N/A -$(RM) $(PROG) $(CLOBBERFILES)
4910N/A
5182N/Alint_PROG: $$(PROG).c
4910N/A $(LINT.c) $(PROG).c $(LDLIBS)
4910N/A
4910N/Alint_SRCS: $$(SRCS)
4910N/A $(LINT.c) $(SRCS) $(LDLIBS)
4910N/A
4910N/A$(ROOTCMDDIR)/%: $(ROOTCMDDIR) %
4910N/A $(INS.file)
4910N/A
4910N/A$(ROOTCMDDIR) $(ROOTCMDDIR64):
4910N/A $(INS.dir)
4910N/A
4910N/A$(ROOTCMDDIR64)/%: $(ROOTCMDDIR64) %
4976N/A $(INS.file)
4910N/A
4910N/A$(ROOTMANIFEST): $(ROOTMANIFESTDIR)
4910N/A
4910N/A$(ROOTMANIFESTDIR):
4910N/A $(INS.dir)
4910N/A
4910N/A$(ROOTMANIFESTDIR)/%: %
4910N/A $(INS.file)
4910N/A
4910N/A$(KSHPROG): $(KSHPROG).ksh
4910N/A $(RM) $@
4910N/A sed -e "s/TEXT_DOMAIN/${TEXT_DOMAIN}/g" $(KSHPROG).ksh > $@
4910N/A $(CHMOD) +x $@
4910N/A
4910N/A#
4910N/A# For message catalogue files
4910N/A#
4910N/A_msg: $(MSGDOMAIN) $(POFILE)
4910N/A $(RM) $(MSGDOMAIN)/$(POFILE)
4910N/A $(CP) $(POFILE) $(MSGDOMAIN)
4910N/A
4910N/A# the build of the $(DCFILE) should be defined locally
4910N/A# its .dc extension gets renamed to .po upon installation
4910N/A#
4910N/A_dc: $(DCMSGDOMAIN) $(DCFILE)
4910N/A $(RM) $(DCMSGDOMAIN)/$(DCFILE)
4910N/A $(CP) $(DCFILE) $(DCMSGDOMAIN)/$(DCFILE:.dc=.po)
4910N/A
4910N/A$(MSGDOMAIN) $(DCMSGDOMAIN):
4910N/A $(INS.dir)
4910N/A