xref: /titanic_44/usr/src/cmd/perl/Makefile (revision 4eaa471005973e11a6110b69fe990530b3b95a38)
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 2008 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26#
27
28include ../Makefile.cmd
29
30all	:= TARGET = all
31install	:= TARGET = install
32clobber := TARGET = clobber
33clean	:= TARGET = clean
34test	:= TARGET = test
35
36PERL_VERSIONS = \
37    5.8.4
38
39.PARALLEL: $(PERL_VERSIONS)
40
41#
42# copy_contrib is used by all the versions of perl to copy the files under
43# contrib into their contrib build directory.  We therefore need to make sure
44# it is fetched from SCCS before calling the version-specific makefiles so that
45# they don't race over it.
46#
47all install test: contrib/copy_contrib $(PERL_VERSIONS)
48
49all install: THIRDPARTYLICENSE
50
51clean: $(PERL_VERSIONS)
52
53clobber: $(PERL_VERSIONS)
54	$(RM) contrib/copy_contrib THIRDPARTYLICENSE
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
66PODDIR = 5.8.4/distrib/pod
67ARTLIC_SRC = $(PODDIR)/perlartistic.pod
68
69#
70# $(PODDIR)/pod2text may already exist (from "make install"), but it
71# doesn't hurt to regenerate it.
72#
73THIRDPARTYLICENSE: $(ARTLIC_SRC)
74	$(PERL) $(PODDIR)/pod2text.PL
75	$(PODDIR)/pod2text $(ARTLIC_SRC) | \
76	    $(SED) -n '/The "Artistic License"/,/The End/p' > $@
77
78FRC:
79