1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9# or http://www.opensolaris.org/os/licensing. 10# See the License for the specific language governing permissions 11# and limitations under the License. 12# 13# When distributing Covered Code, include this CDDL HEADER in each 14# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15# If applicable, add the following below this CDDL HEADER, with the 16# fields enclosed by brackets "[]" replaced with your own identifying 17# information: Portions Copyright [yyyy] [name of copyright owner] 18# 19# CDDL HEADER END 20# 21 22# 23# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 24# Use is subject to license terms. 25# 26#ident "%Z%%M% %I% %E% SMI" 27# 28 29include ../Makefile.cmd 30 31all := TARGET = all 32install := TARGET = install 33clobber := TARGET = clobber 34clean := TARGET = clean 35test := TARGET = test 36 37PERL_VERSIONS = \ 38 5.6.1 \ 39 5.8.4 40 41.PARALLEL: $(PERL_VERSIONS) 42 43# 44# copy_contrib is used by all the versions of perl to copy the files under 45# contrib into their contrib build directory. We therefore need to make sure 46# it is fetched from SCCS before calling the version-specific makefiles so that 47# they don't race over it. 48# 49all install test: contrib/copy_contrib $(PERL_VERSIONS) 50 51all install: THIRDPARTYLICENSE 52 53clean: $(PERL_VERSIONS) 54 55clobber: $(PERL_VERSIONS) 56 $(RM) contrib/copy_contrib THIRDPARTYLICENSE 57 58# 59# Perl is not lint-clean. Fake up a target. 60# 61lint: 62 @ $(ECHO) "usr/src/cmd/perl is not lint-clean: skipping" 63 @ $(TRUE) 64 65$(PERL_VERSIONS): FRC 66 @ cd $@; pwd; $(MAKE) $(TARGET) 67 68PODDIR = 5.8.4/distrib/pod 69ARTLIC_SRC = $(PODDIR)/perlartistic.pod 70 71# 72# $(PODDIR)/pod2text may already exist (from "make install"), but it 73# doesn't hurt to regenerate it. 74# 75THIRDPARTYLICENSE: $(ARTLIC_SRC) 76 $(PERL) $(PODDIR)/pod2text.PL 77 $(PODDIR)/pod2text $(ARTLIC_SRC) | \ 78 $(SED) -n '/The "Artistic License"/,/The End/p' > $@ 79 80FRC: 81