components/pylint/Makefile
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Wed, 29 Aug 2012 11:05:56 -0700
changeset 957 255465c5756f
parent 800 2ad056ed89ec
child 1023 d2db2bc970c3
permissions -rw-r--r--
Close of build 04.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
247
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     1
#
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     3
#
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     7
#
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    12
#
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    18
#
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    20
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    21
#
697
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    22
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
247
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    23
#
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    24
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    25
include ../../make-rules/shared-macros.mk
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    26
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    27
COMPONENT_NAME=		pylint
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    28
COMPONENT_VERSION=	0.18.0
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    29
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    30
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 751
diff changeset
    31
COMPONENT_ARCHIVE_HASH=	\
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 751
diff changeset
    32
    sha256:54e8135fdb44b41797510ed8e246b19d09c98ead4dec704c5e5152028a79976f
247
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_URL=	http://ftp.logilab.org/pub/pylint/$(COMPONENT_ARCHIVE)
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    34
COMPONENT_PROJECT_URL=  http://www.logilab.org/project/pylint/
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    35
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    36
include $(WS_TOP)/make-rules/prep.mk
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    37
include $(WS_TOP)/make-rules/ips.mk
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    38
include $(WS_TOP)/make-rules/setup.py.mk
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    39
697
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    40
# There are several pylint documentation files that setup.py isn't installing
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    41
# but are present in the pylint package on other distributions. Copy them into
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    42
# the proto area "manually", so they can be included in the package.
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    43
PDOC =			$(PROTO_DIR)/usr/share/doc
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    44
PDOC_PYLINT =		$(PDOC)/pylint
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    45
PDOC_PYLINT_EXAMPLES =	$(PDOC_PYLINT)/examples
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    46
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    47
COMPONENT_POST_INSTALL_ACTION += \
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    48
	$(MKDIR) $(PDOC_PYLINT) ;
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    49
COMPONENT_POST_INSTALL_ACTION += \
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    50
	$(CP) $(COMPONENT_SRC)/doc/beginner_pylint_tutorial.txt $(PDOC_PYLINT) ;
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    51
COMPONENT_POST_INSTALL_ACTION += \
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    52
	$(CP) $(COMPONENT_SRC)/doc/FAQ.txt $(PDOC_PYLINT) ;
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    53
COMPONENT_POST_INSTALL_ACTION += \
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    54
	$(CP) $(COMPONENT_SRC)/doc/features.txt $(PDOC_PYLINT) ;
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    55
COMPONENT_POST_INSTALL_ACTION += \
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    56
	$(CP) $(COMPONENT_SRC)/doc/manual.txt $(PDOC_PYLINT) ;
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    57
COMPONENT_POST_INSTALL_ACTION += \
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    58
	$(CP) $(COMPONENT_SRC)/doc/quickstart.txt $(PDOC_PYLINT) ;
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    59
COMPONENT_POST_INSTALL_ACTION += \
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    60
	$(CP) $(COMPONENT_SRC)/README $(PDOC_PYLINT) ;
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    61
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    62
COMPONENT_POST_INSTALL_ACTION += \
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    63
	$(MKDIR) $(PDOC_PYLINT_EXAMPLES) ;
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    64
COMPONENT_POST_INSTALL_ACTION += \
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    65
	$(CP) $(COMPONENT_SRC)/examples/custom.py $(PDOC_PYLINT_EXAMPLES) ;
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    66
COMPONENT_POST_INSTALL_ACTION += \
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    67
	$(CP) $(COMPONENT_SRC)/examples/custom_raw.py $(PDOC_PYLINT_EXAMPLES) ;
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    68
COMPONENT_POST_INSTALL_ACTION += \
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    69
	$(CP) $(COMPONENT_SRC)/elisp/pylint.el $(PDOC_PYLINT_EXAMPLES) ;
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    70
COMPONENT_POST_INSTALL_ACTION += \
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    71
	$(CP) $(COMPONENT_SRC)/examples/pylintrc_camelcase $(PDOC_PYLINT_EXAMPLES) ;
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    72
COMPONENT_POST_INSTALL_ACTION += \
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    73
	$(CP) $(COMPONENT_SRC)/examples/pylintrc $(PDOC_PYLINT_EXAMPLES) ;
751
32bfb3fa9b60 7155746 Userland python bits should use mediated links
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 697
diff changeset
    74
COMPONENT_POST_INSTALL_ACTION += \
32bfb3fa9b60 7155746 Userland python bits should use mediated links
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 697
diff changeset
    75
	(cd $(PROTO_DIR)/usr/bin; $(MV) epylint epylint-$(PYTHON_VERSION)) ;
32bfb3fa9b60 7155746 Userland python bits should use mediated links
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 697
diff changeset
    76
COMPONENT_POST_INSTALL_ACTION += \
32bfb3fa9b60 7155746 Userland python bits should use mediated links
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 697
diff changeset
    77
	(cd $(PROTO_DIR)/usr/bin; $(MV) pylint pylint-$(PYTHON_VERSION)) ;
32bfb3fa9b60 7155746 Userland python bits should use mediated links
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 697
diff changeset
    78
COMPONENT_POST_INSTALL_ACTION += \
32bfb3fa9b60 7155746 Userland python bits should use mediated links
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 697
diff changeset
    79
	(cd $(PROTO_DIR)/usr/bin; $(MV) pylint-gui pylint-gui-$(PYTHON_VERSION)) ;
32bfb3fa9b60 7155746 Userland python bits should use mediated links
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 697
diff changeset
    80
COMPONENT_POST_INSTALL_ACTION += \
32bfb3fa9b60 7155746 Userland python bits should use mediated links
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 697
diff changeset
    81
	(cd $(PROTO_DIR)/usr/bin; $(MV) pyreverse pyreverse-$(PYTHON_VERSION)) ;
32bfb3fa9b60 7155746 Userland python bits should use mediated links
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 697
diff changeset
    82
COMPONENT_POST_INSTALL_ACTION += \
32bfb3fa9b60 7155746 Userland python bits should use mediated links
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 697
diff changeset
    83
	(cd $(PROTO_DIR)/usr/bin; $(MV) symilar symilar-$(PYTHON_VERSION)) ;
697
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    84
452fae7409ce 7092106 pylint manpage refers to non-existent path
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    85
247
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    86
# common targets
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    87
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    88
build:		$(BUILD_32)
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    89
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    90
install:	$(INSTALL_32)
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    91
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    92
test:		$(TEST_32)
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    93
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    94
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    95
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    96
include $(WS_TOP)/make-rules/depend.mk