xref: /onnv-gate/usr/src/cmd/perl/Makefile (revision 12639:884a64bb4385)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
54162Skupfer# Common Development and Distribution License (the "License").
64162Skupfer# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
214162Skupfer
220Sstevel@tonic-gate#
23*12639SJohn.Sonnenschein@Oracle.com# Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
240Sstevel@tonic-gate#
250Sstevel@tonic-gate
260Sstevel@tonic-gateinclude ../Makefile.cmd
270Sstevel@tonic-gate
280Sstevel@tonic-gateall	:= TARGET = all
290Sstevel@tonic-gateinstall	:= TARGET = install
300Sstevel@tonic-gateclobber := TARGET = clobber
310Sstevel@tonic-gateclean	:= TARGET = clean
320Sstevel@tonic-gatetest	:= TARGET = test
330Sstevel@tonic-gate
34*12639SJohn.Sonnenschein@Oracle.com# PERL_LEGACY is versions of Perl still delivered through ON
35*12639SJohn.Sonnenschein@Oracle.comPERL_LEGACY = 5.8.4
36*12639SJohn.Sonnenschein@Oracle.com
37*12639SJohn.Sonnenschein@Oracle.com# WOS_PERL is non-ON Perl
38*12639SJohn.Sonnenschein@Oracle.comWOS_PERL = 5.10.0
39*12639SJohn.Sonnenschein@Oracle.com
40*12639SJohn.Sonnenschein@Oracle.comPERL_VERSIONS = $(PERL_LEGACY) $(WOS_PERL)
410Sstevel@tonic-gate
420Sstevel@tonic-gate.PARALLEL: $(PERL_VERSIONS)
430Sstevel@tonic-gate
440Sstevel@tonic-gate#
450Sstevel@tonic-gate# copy_contrib is used by all the versions of perl to copy the files under
460Sstevel@tonic-gate# contrib into their contrib build directory.  We therefore need to make sure
470Sstevel@tonic-gate# it is fetched from SCCS before calling the version-specific makefiles so that
480Sstevel@tonic-gate# they don't race over it.
490Sstevel@tonic-gate#
500Sstevel@tonic-gateall install test: contrib/copy_contrib $(PERL_VERSIONS)
510Sstevel@tonic-gate
524162Skupferall install: THIRDPARTYLICENSE
534162Skupfer
540Sstevel@tonic-gateclean: $(PERL_VERSIONS)
550Sstevel@tonic-gate
560Sstevel@tonic-gateclobber: $(PERL_VERSIONS)
57*12639SJohn.Sonnenschein@Oracle.com	$(RM) -r contrib/copy_contrib THIRDPARTYLICENSE $(WOS_PERL)
580Sstevel@tonic-gate
590Sstevel@tonic-gate#
600Sstevel@tonic-gate# Perl is not lint-clean.  Fake up a target.
610Sstevel@tonic-gate#
620Sstevel@tonic-gatelint:
630Sstevel@tonic-gate	@ $(ECHO) "usr/src/cmd/perl is not lint-clean: skipping"
640Sstevel@tonic-gate	@ $(TRUE)
650Sstevel@tonic-gate
660Sstevel@tonic-gate$(PERL_VERSIONS): FRC
67*12639SJohn.Sonnenschein@Oracle.com	@ if [ ! -d $@ ]; then \
68*12639SJohn.Sonnenschein@Oracle.com	    $(CP) -r skel $@; \
69*12639SJohn.Sonnenschein@Oracle.com	fi
70*12639SJohn.Sonnenschein@Oracle.com	@ cd $@; pwd; PERL_VERSION=$@ $(MAKE) $(TARGET)
710Sstevel@tonic-gate
724162SkupferPODDIR = 5.8.4/distrib/pod
734162SkupferARTLIC_SRC = $(PODDIR)/perlartistic.pod
744162Skupfer
754162Skupfer#
764162Skupfer# $(PODDIR)/pod2text may already exist (from "make install"), but it
774162Skupfer# doesn't hurt to regenerate it.
784162Skupfer#
794162SkupferTHIRDPARTYLICENSE: $(ARTLIC_SRC)
804162Skupfer	$(PERL) $(PODDIR)/pod2text.PL
814162Skupfer	$(PODDIR)/pod2text $(ARTLIC_SRC) | \
824162Skupfer	    $(SED) -n '/The "Artistic License"/,/The End/p' > $@
834162Skupfer
840Sstevel@tonic-gateFRC:
85