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