Makefile revision fb9f9b975cb9214fec5dab37d461199adab9b964
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# CDDL HEADER START
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# The contents of this file are subject to the terms of the
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# Common Development and Distribution License, Version 1.0 only
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# (the "License"). You may not use this file except in compliance
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# with the License.
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# See the License for the specific language governing permissions
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# and limitations under the License.
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# When distributing Covered Code, include this CDDL HEADER in each
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# If applicable, add the following below this CDDL HEADER, with the
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# fields enclosed by brackets "[]" replaced with your own identifying
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# information: Portions Copyright [yyyy] [name of copyright owner]
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# CDDL HEADER END
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# Use is subject to license terms.
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica#ident "%Z%%M% %I% %E% SMI"
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# Extra arguments needed to fool MakeMaker into building in the distrib tree.
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# Note we fake up an extra directory for contrib scripts under distrib - the
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# modified installperl knows how to handle the contents.
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaPERL_MM_ARGS += INST_ARCHLIB=$(PERL_DISTRIB)/lib INST_LIB=$(PERL_DISTRIB)/lib \
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica INST_BIN=$(PERL_DISTRIB)/contrib_bin PERL_SRC=$(PERL_DISTRIB)
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# All SMI perl libraries should be prefixed with this.
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# Add any XS extensions here.
583b61f62d9b9c5ac6bbc290b4e91263dfb202b4aj# Add any pure-perl extensions here.
583b61f62d9b9c5ac6bbc290b4e91263dfb202b4aj$(CLOSED_BUILD)ALL_EXT_MAKEFILES += $(CLOSED_PERL_EXT:%=%/Makefile)
583b61f62d9b9c5ac6bbc290b4e91263dfb202b4aj# Note: this is a dummy install target; during 'make all' this Makefile
583b61f62d9b9c5ac6bbc290b4e91263dfb202b4aj# populates ../distrib/lib with the modules that it is responsible for building,
583b61f62d9b9c5ac6bbc290b4e91263dfb202b4aj# and the install target of ../distrib/Makefile subsequently copies the modules
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# into the proto area.
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# copy_contrib copies the clearfiles from ../../contrib to here.
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica @ ../../contrib/copy_contrib ../../contrib . $(PERL_EXT)
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica ../../contrib/copy_contrib $(CLOSED)/cmd/perl/contrib \
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica if [ -d $$ext ]; then \
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica cd $$ext; pwd; \
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica [ -f Makefile ] && mf=Makefile; \
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica if [ -d $$ext ]; then \
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica cd $$ext; pwd; \
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica [ -f Makefile ] && mf=Makefile; \
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica cd $$ext; pwd; \
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica [ -f Makefile ] && mf=Makefile; \
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# Pattern-matching rule for Makefiles.
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica @ cd $(@D); pwd; $(RUN_MINIPERL) $(<F) $(PERL_MM_ARGS) > /dev/null
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# Pattern-matching rule for extensions.
8700009e2cc8cb186241e1fdd74973da1121ee4crica# Additional rule to make sure changes to the ::Exacct sub-module Makefile.PL
8700009e2cc8cb186241e1fdd74973da1121ee4crica# files results in the parent Makefile.PL being rerun.
8700009e2cc8cb186241e1fdd74973da1121ee4crica$(SUN_SOLARIS)/Exacct/Makefile: $(SUN_SOLARIS)/Exacct/Makefile.PL \