xref: /titanic_41/usr/src/cmd/perl/Makefile (revision 7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fe)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2004 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
51clean: $(PERL_VERSIONS)
52
53clobber: $(PERL_VERSIONS)
54	$(RM) contrib/copy_contrib
55
56#
57# Perl is not lint-clean.  Fake up a target.
58#
59lint:
60	@ $(ECHO) "usr/src/cmd/perl is not lint-clean: skipping"
61	@ $(TRUE)
62
63$(PERL_VERSIONS): FRC
64	@ cd $@; pwd; $(MAKE) $(TARGET)
65
66FRC:
67