Makefile revision 4e5b757fbcf21077677360be274461dcd9064106
306N/A#
306N/A# CDDL HEADER START
306N/A#
306N/A# The contents of this file are subject to the terms of the
306N/A# Common Development and Distribution License (the "License").
306N/A# You may not use this file except in compliance with the License.
306N/A#
306N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
306N/A# or http://www.opensolaris.org/os/licensing.
306N/A# See the License for the specific language governing permissions
306N/A# and limitations under the License.
306N/A#
306N/A# When distributing Covered Code, include this CDDL HEADER in each
306N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
306N/A# If applicable, add the following below this CDDL HEADER, with the
306N/A# fields enclosed by brackets "[]" replaced with your own identifying
306N/A# information: Portions Copyright [yyyy] [name of copyright owner]
306N/A#
306N/A# CDDL HEADER END
306N/A#
306N/A
306N/A#
3817N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
306N/A# Use is subject to license terms.
306N/A#
306N/A#ident "%Z%%M% %I% %E% SMI"
306N/A#
306N/A
306N/Ainclude ../Makefile.cmd
306N/A
306N/Aall := TARGET = all
306N/Ainstall := TARGET = install
844N/Aclobber := TARGET = clobber
844N/Aclean := TARGET = clean
306N/Atest := TARGET = test
1258N/A
306N/APERL_VERSIONS = \
2899N/A 5.6.1 \
2899N/A 5.8.4
3817N/A
3817N/A.PARALLEL: $(PERL_VERSIONS)
3817N/A
306N/A#
306N/A# copy_contrib is used by all the versions of perl to copy the files under
306N/A# contrib into their contrib build directory. We therefore need to make sure
306N/A# it is fetched from SCCS before calling the version-specific makefiles so that
306N/A# they don't race over it.
306N/A#
306N/Aall install test: contrib/copy_contrib $(PERL_VERSIONS)
306N/A
306N/Aall install: THIRDPARTYLICENSE
2548N/A
306N/Aclean: $(PERL_VERSIONS)
306N/A
306N/Aclobber: $(PERL_VERSIONS)
306N/A $(RM) contrib/copy_contrib THIRDPARTYLICENSE
306N/A
306N/A#
306N/A# Perl is not lint-clean. Fake up a target.
306N/A#
306N/Alint:
306N/A @ $(ECHO) "usr/src/cmd/perl is not lint-clean: skipping"
306N/A @ $(TRUE)
3477N/A
3477N/A$(PERL_VERSIONS): FRC
2218N/A @ cd $@; pwd; $(MAKE) $(TARGET)
306N/A
2218N/APODDIR = 5.8.4/distrib/pod
306N/AARTLIC_SRC = $(PODDIR)/perlartistic.pod
306N/A
306N/A#
306N/A# $(PODDIR)/pod2text may already exist (from "make install"), but it
3817N/A# doesn't hurt to regenerate it.
3817N/A#
3817N/ATHIRDPARTYLICENSE: $(ARTLIC_SRC)
3817N/A $(PERL) $(PODDIR)/pod2text.PL
$(PODDIR)/pod2text $(ARTLIC_SRC) | \
$(SED) -n '/The "Artistic License"/,/The End/p' > $@
FRC: