components/indent/Makefile
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Mon, 23 Mar 2015 20:28:41 -0700
changeset 4011 5a309c9572e8
parent 3817 30b42c38bbc4
child 4339 6501cf9c29f9
permissions -rw-r--r--
Close of build 71.
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
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    21
#
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    22
# Copyright (c) 2013, 2015, 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
    23
#
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    25
include ../../make-rules/shared-macros.mk
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
COMPONENT_NAME=		indent
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_VERSION=	2.2.9
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    29
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
COMPONENT_PROJECT_URL=  https://www.gnu.org/software/indent/
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE_HASH=	\
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    33
    sha256:0b9387bda5639ed54cf91bd607ab055624a07414f7f6882a75be97fd776ce466
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    34
COMPONENT_ARCHIVE_URL=	ftp://ftp.gnu.org/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    35
COMPONENT_BUGDB=	utility/gnu-indent
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    36
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1730
diff changeset
    37
TPNO=			12225
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1730
diff changeset
    38
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    39
include $(WS_MAKE_RULES)/prep.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    40
include $(WS_MAKE_RULES)/configure.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    41
include $(WS_MAKE_RULES)/ips.mk
1208
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    42
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
# Needed to get "gmake test" working.
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
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
    45
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    46
CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
1730
31e3db6b78ba 18317575 indent delivers texinfo file in wrong location
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1208
diff changeset
    47
CONFIGURE_OPTIONS +=	--infodir=$(CONFIGURE_INFODIR)
1208
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    48
2164
b580bc10e31a 19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    49
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
    50
# Need to put /usr/gnu/bin at the front of $PATH for GNU diff.
b580bc10e31a 19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    51
COMPONENT_TEST_ENV +=		PATH=$(GNUBIN):/usr/bin
b580bc10e31a 19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    52
COMPONENT_TEST_TARGETS =	test
b580bc10e31a 19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    53
1208
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    54
ASLR_MODE = $(ASLR_ENABLE)
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    55
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    56
# common targets
2225
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 2164
diff changeset
    57
configure:	$(CONFIGURE_64)
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 2164
diff changeset
    58
1208
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    59
build:		$(BUILD_64)
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    60
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    61
install:	$(INSTALL_64)
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    62
2164
b580bc10e31a 19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    63
test:		install $(TEST_64)
1208
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    64
8071b2820035 PSARC 2013/004 GNU indent 2.2.9
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    65
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    66
REQUIRED_PACKAGES += system/library