Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
6643N/A#
6643N/A# CDDL HEADER START
6643N/A#
6643N/A# The contents of this file are subject to the terms of the
6643N/A# Common Development and Distribution License, Version 1.0 only
6643N/A# (the "License"). You may not use this file except in compliance
6643N/A# with the License.
6643N/A#
6643N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6643N/A# or http://www.opensolaris.org/os/licensing.
6643N/A# See the License for the specific language governing permissions
6643N/A# and limitations under the License.
6643N/A#
6643N/A# When distributing Covered Code, include this CDDL HEADER in each
6643N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6643N/A# If applicable, add the following below this CDDL HEADER, with the
6643N/A# fields enclosed by brackets "[]" replaced with your own identifying
6643N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6643N/A#
6643N/A# CDDL HEADER END
6643N/A#
6643N/A#
6643N/A# Copyright (c) 1999-2001 by Sun Microsystems, Inc.
6643N/A# All rights reserved.
6643N/A#
6643N/A#ident "%Z%%M% %I% %E% SMI"
6643N/A#
6643N/A# cmd/abi/appcert/scripts/Makefile
6643N/A#
6643N/A
6643N/ASUFFIXES += .pl .pm
6643N/A
6643N/APROG= appcert
6643N/AAPPCERT_SUBCMDS= symcheck symprof symreport abi_index
6643N/AMODULES= AppcertUtil.pm
6643N/A
6643N/ASCRIPTS= $(PROG) $(APPCERT_SUBCMDS)
6643N/AMESSAGES= $(SCRIPTS:%=%.po) $(MODULES:%.pm=%.po)
6643N/A
6643N/A
6643N/ACLEANFILES= $(SCRIPTS) $(MESSAGES)
6643N/ACLOBBERFILES= $(SCRIPTS) $(MESSAGES)
6643N/A
6643N/Ainclude $(SRC)/cmd/Makefile.cmd
6643N/A
6643N/AROOTLIBABIDIR = $(ROOTLIB)/abi/appcert
6643N/AROOTLIBABIFILES = $(APPCERT_SUBCMDS:%=$(ROOTLIBABIDIR)/%) \
6643N/A $(MODULES:%=$(ROOTLIBABIDIR)/%)
6643N/A
6643N/A.KEEP_STATE:
6643N/A
6643N/Aall: $(SCRIPTS) $(MODULES)
6643N/A
6643N/A#
6643N/A# install targets
6643N/A# Note: Makefile.cmd has a rule to cover $(ROOTSHFILES), but
6643N/A# $(ROOTLIBABIFILES) are special install targets (go into
6643N/A# dirs not covered by Makefile.cmd), so we provide an explicit
6643N/A# rule for that.
#
install: all .WAIT $(ROOTPROG) $(ROOTLIBABIDIR) .WAIT $(ROOTLIBABIFILES)
_msg: $(MSGDOMAIN) $(MESSAGES)
$(CP) $(MESSAGES) $(MSGDOMAIN)
$(MSGDOMAIN):
$(INS.dir)
.pl:
$(RM) $@
$(SED) -e "s@TEXT_DOMAIN@\"$(TEXT_DOMAIN)\"@" $< > $@
$(CHMOD) +x $@
.pm:
clean:
-$(RM) $(CLEANFILES)
$(ROOTBINPROG): $(PROG)
$(INS.file)
$(ROOTLIBABIDIR):
$(INS.dir)
$(ROOTLIBABIDIR)/%: %
$(INS.file)
%.po: %.pl
$(XGETTEXT) $(XGETFLAGS) $<
$(RM) $@
$(SED) "/^domain/d" messages.po > $@
$(RM) messages.po
%.po: %.pm
$(XGETTEXT) $(XGETFLAGS) $<
$(RM) $@
$(SED) "/^domain/d" messages.po > $@
$(RM) messages.po
lint:
clobber: clean
-$(RM) $(CLOBBERFILES)