components/pylint/Makefile
changeset 697 452fae7409ce
parent 247 c57f32335aee
child 751 32bfb3fa9b60
equal deleted inserted replaced
696:b491465fd766 697:452fae7409ce
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 
    20 
    21 #
    21 #
    22 # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
    22 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
    23 #
    23 #
    24 
    24 
    25 include ../../make-rules/shared-macros.mk
    25 include ../../make-rules/shared-macros.mk
    26 
    26 
    27 COMPONENT_NAME=		pylint
    27 COMPONENT_NAME=		pylint
    34 
    34 
    35 include $(WS_TOP)/make-rules/prep.mk
    35 include $(WS_TOP)/make-rules/prep.mk
    36 include $(WS_TOP)/make-rules/ips.mk
    36 include $(WS_TOP)/make-rules/ips.mk
    37 include $(WS_TOP)/make-rules/setup.py.mk
    37 include $(WS_TOP)/make-rules/setup.py.mk
    38 
    38 
       
    39 # There are several pylint documentation files that setup.py isn't installing
       
    40 # but are present in the pylint package on other distributions. Copy them into
       
    41 # the proto area "manually", so they can be included in the package.
       
    42 PDOC =			$(PROTO_DIR)/usr/share/doc
       
    43 PDOC_PYLINT =		$(PDOC)/pylint
       
    44 PDOC_PYLINT_EXAMPLES =	$(PDOC_PYLINT)/examples
       
    45 
       
    46 COMPONENT_POST_INSTALL_ACTION += \
       
    47 	$(MKDIR) $(PDOC_PYLINT) ;
       
    48 COMPONENT_POST_INSTALL_ACTION += \
       
    49 	$(CP) $(COMPONENT_SRC)/doc/beginner_pylint_tutorial.txt $(PDOC_PYLINT) ;
       
    50 COMPONENT_POST_INSTALL_ACTION += \
       
    51 	$(CP) $(COMPONENT_SRC)/doc/FAQ.txt $(PDOC_PYLINT) ;
       
    52 COMPONENT_POST_INSTALL_ACTION += \
       
    53 	$(CP) $(COMPONENT_SRC)/doc/features.txt $(PDOC_PYLINT) ;
       
    54 COMPONENT_POST_INSTALL_ACTION += \
       
    55 	$(CP) $(COMPONENT_SRC)/doc/manual.txt $(PDOC_PYLINT) ;
       
    56 COMPONENT_POST_INSTALL_ACTION += \
       
    57 	$(CP) $(COMPONENT_SRC)/doc/quickstart.txt $(PDOC_PYLINT) ;
       
    58 COMPONENT_POST_INSTALL_ACTION += \
       
    59 	$(CP) $(COMPONENT_SRC)/README $(PDOC_PYLINT) ;
       
    60 
       
    61 COMPONENT_POST_INSTALL_ACTION += \
       
    62 	$(MKDIR) $(PDOC_PYLINT_EXAMPLES) ;
       
    63 COMPONENT_POST_INSTALL_ACTION += \
       
    64 	$(CP) $(COMPONENT_SRC)/examples/custom.py $(PDOC_PYLINT_EXAMPLES) ;
       
    65 COMPONENT_POST_INSTALL_ACTION += \
       
    66 	$(CP) $(COMPONENT_SRC)/examples/custom_raw.py $(PDOC_PYLINT_EXAMPLES) ;
       
    67 COMPONENT_POST_INSTALL_ACTION += \
       
    68 	$(CP) $(COMPONENT_SRC)/elisp/pylint.el $(PDOC_PYLINT_EXAMPLES) ;
       
    69 COMPONENT_POST_INSTALL_ACTION += \
       
    70 	$(CP) $(COMPONENT_SRC)/examples/pylintrc_camelcase $(PDOC_PYLINT_EXAMPLES) ;
       
    71 COMPONENT_POST_INSTALL_ACTION += \
       
    72 	$(CP) $(COMPONENT_SRC)/examples/pylintrc $(PDOC_PYLINT_EXAMPLES) ;
       
    73 
       
    74 
    39 # common targets
    75 # common targets
    40 
    76 
    41 build:		$(BUILD_32)
    77 build:		$(BUILD_32)
    42 
    78 
    43 install:	$(INSTALL_32)
    79 install:	$(INSTALL_32)