components/indent/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Thu, 23 Feb 2017 13:46:52 -0800
changeset 7687 1093e2a9adbd
parent 6368 16a591f04186
permissions -rw-r--r--
25590368 Userland components should include "upstream" release tracking information
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1208
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4737
diff changeset
    20
#
1208
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    21
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
#
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 6368
diff changeset
    23
# Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
1208
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4737
diff changeset
    25
BUILD_BITS= 64
1208
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		indent
6368
16a591f04186 23209597 Upgrade indent to 2.2.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    29
COMPONENT_VERSION=	2.2.10
1208
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_ARCHIVE_HASH=	\
6368
16a591f04186 23209597 Upgrade indent to 2.2.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    31
    sha256:8a9b41be5bfcab5d8c1be74204b10ae78789fc3deabea0775fdced8677292639
1208
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
COMPONENT_BUGDB=	utility/gnu-indent
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 6368
diff changeset
    33
COMPONENT_ANITYA_ID=	1378
1208
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    34
6368
16a591f04186 23209597 Upgrade indent to 2.2.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    35
TPNO=			28115
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1730
diff changeset
    36
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4737
diff changeset
    37
TEST_TARGET= install $(TEST_64)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4737
diff changeset
    38
SYSTEM_TEST_TARGET= configure $(SYSTEM_TEST_64)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4737
diff changeset
    39
include $(WS_MAKE_RULES)/gnu-component.mk
1208
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    40
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    41
# Needed to get "gmake test" working.
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    42
COMPONENT_PRE_CONFIGURE_ACTION =	($(CLONEY) $(SOURCE_DIR) $(@D))
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
1730
31e3db6b78ba 18317575 indent delivers texinfo file in wrong location
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1208
diff changeset
    44
CONFIGURE_OPTIONS +=	--infodir=$(CONFIGURE_INFODIR)
1208
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    45
6368
16a591f04186 23209597 Upgrade indent to 2.2.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    46
# Previous versions of indent included a pre-made indent.1 man page that
16a591f04186 23209597 Upgrade indent to 2.2.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    47
# was then easy to patch. Now we need to forceably create indent.1 from
16a591f04186 23209597 Upgrade indent to 2.2.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    48
# indent.1.in. We also need to copy ../doc/version.texi into the man
16a591f04186 23209597 Upgrade indent to 2.2.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    49
# directory in the build area so that it's correctly included when
16a591f04186 23209597 Upgrade indent to 2.2.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    50
# texinfo2man processes the indent.texinfo file.
16a591f04186 23209597 Upgrade indent to 2.2.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    51
COMPONENT_POST_BUILD_ACTION = \
16a591f04186 23209597 Upgrade indent to 2.2.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    52
	$(CP) $(SOURCE_DIR)/doc/version.texi $(BUILD_DIR_$(BITS))/man/ ; \
16a591f04186 23209597 Upgrade indent to 2.2.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    53
	cd $(BUILD_DIR_$(BITS))/man ; $(GMAKE) -B indent.1
16a591f04186 23209597 Upgrade indent to 2.2.10
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    54
4737
844cca6e99f3 21549702 Yet more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    55
COMPONENT_TEST_TRANSFORMS += \
844cca6e99f3 21549702 Yet more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    56
	'-e "s|^make.*: Leaving directory.*$$|XXX_CC_XXX|g" ' \
844cca6e99f3 21549702 Yet more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    57
	'-e "s|^make.*: Entering directory.*$$|XXX_CC_XXX|g" ' \
844cca6e99f3 21549702 Yet more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    58
	'-e "/^XXX_CC_XXX$$/d" '
844cca6e99f3 21549702 Yet more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    59
2164
b580bc10e31a 19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    60
COMPONENT_TEST_DIR =		$(@D)/regression
b580bc10e31a 19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    61
# Need to put /usr/gnu/bin at the front of $PATH for GNU diff.
4737
844cca6e99f3 21549702 Yet more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    62
COMPONENT_TEST_CMD =		./TEST
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4737
diff changeset
    63
COMPONENT_TEST_ENV +=		PATH=$(GNUBIN):$(USRBINDIR)
4737
844cca6e99f3 21549702 Yet more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    64
COMPONENT_TEST_TARGETS =
844cca6e99f3 21549702 Yet more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    65
844cca6e99f3 21549702 Yet more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    66
COMPONENT_SYSTEM_TEST_DIR =	$(@D)/regression
844cca6e99f3 21549702 Yet more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    67
COMPONENT_SYSTEM_TEST_CMD =	./TEST
844cca6e99f3 21549702 Yet more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    68
# Need to put /usr/gnu/bin at the front of $PATH for GNU diff.
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4737
diff changeset
    69
COMPONENT_SYSTEM_TEST_ENV +=	PATH=$(GNUBIN):$(USRBINDIR)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4737
diff changeset
    70
COMPONENT_SYSTEM_TEST_ENV +=	INDENT_BIN=$(USRBINDIR)/indent
4737
844cca6e99f3 21549702 Yet more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    71
COMPONENT_SYSTEM_TEST_TARGETS =