components/vim/Makefile
author Petr Sumbera <petr.sumbera@oracle.com>
Thu, 24 May 2012 04:05:29 -0700
changeset 829 92b5de339d33
parent 820 60113d90e478
child 903 ebe1b43bc331
permissions -rw-r--r--
7166132 vim should be able to run its test suite
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
198
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     1
#
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     3
#
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     7
#
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    12
#
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    18
#
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    20
#
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    21
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    22
#
672
92e2da956d23 7085706 update vim to 7.3.421
Danek Duvall <danek.duvall@oracle.com>
parents: 575
diff changeset
    23
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
198
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    24
#
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    25
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    27
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    28
PATH=/usr/bin:/usr/gnu/bin
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    29
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    30
COMPONENT_NAME=		vim
379
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    31
COMPONENT_VERSION=	7.3
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    32
IPS_COMPONENT_VERSION=	$(shell echo $(COMPONENT_HG_REV) | sed -e 's/-/./g' -e 's/v//')
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    33
COMPONENT_SRC=		vim-$(COMPONENT_HG_REV)
198
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    34
COMPONENT_PROJECT_URL=	http://www.vim.org/
379
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    35
COMPONENT_ARCHIVE=	vim-$(COMPONENT_HG_REV).tar.bz2
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    36
COMPONENT_ARCHIVE_URL=	$(EXTERNAL_ARCHIVE_MIRROR)/$(COMPONENT_ARCHIVE)
820
60113d90e478 7143097 upgrade vim to 7.3.515
Danek Duvall <danek.duvall@oracle.com>
parents: 800
diff changeset
    37
COMPONENT_ARCHIVE_HASH=	sha256:11f5179b41ce84c7221e8126463b211d9511188423f5f955274f2198e987f427
379
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    38
COMPONENT_HG_URL=	https://vim.googlecode.com/hg
820
60113d90e478 7143097 upgrade vim to 7.3.515
Danek Duvall <danek.duvall@oracle.com>
parents: 800
diff changeset
    39
COMPONENT_HG_REV=	v7-3-515
60113d90e478 7143097 upgrade vim to 7.3.515
Danek Duvall <danek.duvall@oracle.com>
parents: 800
diff changeset
    40
COMPONENT_HG_REV_OLD=	v7-3-515
198
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    41
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    42
include ../../make-rules/prep.mk
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    43
include ../../make-rules/configure.mk
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    44
include ../../make-rules/ips.mk
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    45
379
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    46
HGREPODIR=		$(COMPONENT_NAME).hg
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    47
TARBALLDIR=		$(COMPONENT_NAME)-$(COMPONENT_HG_REV)
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    48
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    49
$(HGREPODIR)/.hg:
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    50
	hg clone -U $(COMPONENT_HG_URL) $(@D)
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    51
672
92e2da956d23 7085706 update vim to 7.3.421
Danek Duvall <danek.duvall@oracle.com>
parents: 575
diff changeset
    52
hgball-pull: $(HGREPODIR)/.hg
92e2da956d23 7085706 update vim to 7.3.421
Danek Duvall <danek.duvall@oracle.com>
parents: 575
diff changeset
    53
	hg -R $(HGREPODIR) pull
92e2da956d23 7085706 update vim to 7.3.421
Danek Duvall <danek.duvall@oracle.com>
parents: 575
diff changeset
    54
92e2da956d23 7085706 update vim to 7.3.421
Danek Duvall <danek.duvall@oracle.com>
parents: 575
diff changeset
    55
hgball: COMPONENT_HG_REV = $(shell hg -R $(HGREPODIR) tags | awk '$$1 ~ /^v7-/ {print $$1; exit}')
92e2da956d23 7085706 update vim to 7.3.421
Danek Duvall <danek.duvall@oracle.com>
parents: 575
diff changeset
    56
379
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    57
# Create the tarball.  It should contain the working directory of the repo at
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    58
# the desired revision, but not the .hg directory.  Note that the digest will
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    59
# be different every time because .hg doesn't set the timestamps of the files
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    60
# in the working directory.
672
92e2da956d23 7085706 update vim to 7.3.421
Danek Duvall <danek.duvall@oracle.com>
parents: 575
diff changeset
    61
hgball: hgball-pull
379
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    62
	rm -rf $(TARBALLDIR)
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    63
	hg clone -u $(COMPONENT_HG_REV) $(HGREPODIR) $(TARBALLDIR)
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    64
	rm -rf $(TARBALLDIR)/.hg
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    65
	tar jcf $(COMPONENT_ARCHIVE) $(TARBALLDIR)
820
60113d90e478 7143097 upgrade vim to 7.3.515
Danek Duvall <danek.duvall@oracle.com>
parents: 800
diff changeset
    66
	hg --cwd $(HGREPODIR) stat -ar --rev $(COMPONENT_HG_REV_OLD):tip runtime src/po
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 672
diff changeset
    67
	digest=$$(digest -a sha256 $(COMPONENT_ARCHIVE)); \
672
92e2da956d23 7085706 update vim to 7.3.421
Danek Duvall <danek.duvall@oracle.com>
parents: 575
diff changeset
    68
		/usr/gnu/bin/sed -i \
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 672
diff changeset
    69
			-e "s/^COMPONENT_ARCHIVE_HASH=.*/COMPONENT_ARCHIVE_HASH=	sha256:$$digest/" \
672
92e2da956d23 7085706 update vim to 7.3.421
Danek Duvall <danek.duvall@oracle.com>
parents: 575
diff changeset
    70
			-e "s/^COMPONENT_HG_REV=.*/COMPONENT_HG_REV=	$(COMPONENT_HG_REV)/" \
820
60113d90e478 7143097 upgrade vim to 7.3.515
Danek Duvall <danek.duvall@oracle.com>
parents: 800
diff changeset
    71
			-e "s/^COMPONENT_HG_REV_OLD=.*/COMPONENT_HG_REV_OLD=	$(COMPONENT_HG_REV)/" \
672
92e2da956d23 7085706 update vim to 7.3.421
Danek Duvall <danek.duvall@oracle.com>
parents: 575
diff changeset
    72
			Makefile
379
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    73
198
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    74
PATCH_LEVEL =	0
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    75
379
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    76
PKG_MACROS +=	VIMVER=vim73
198
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    77
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    78
X_VARIANT =	$(BUILD_DIR)/$(MACH32)-gvim
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    79
NOX_VARIANT =	$(BUILD_DIR)/$(MACH32)-vim
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    80
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    81
VARIANTS =	$(X_VARIANT) $(NOX_VARIANT)
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    82
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    83
$(VARIANTS:%=%/.configured):	BITS=32
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    84
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    85
BUILD_32 = 	$(VARIANTS:%=%/.built)
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    86
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    87
# Only install the non-X variant.  We will cherry-pick gvim out of the build
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    88
# directory to avoid re-installing everything.
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    89
INSTALL_32 = 	$(NOX_VARIANT)/.installed
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    90
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    91
TEST_32 = 	$(NOX_VARIANT)/.tested
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    92
575
9b55b6329084 7109350 gvim has 64-bit runpath
Rich Burridge <rich.burridge@oracle.com>
parents: 420
diff changeset
    93
# Override a broken imake that's always providing a 64-bit library directory.
9b55b6329084 7109350 gvim has 64-bit runpath
Rich Burridge <rich.burridge@oracle.com>
parents: 420
diff changeset
    94
CONFIGURE_OPTIONS +=	--x-libraries=$(CONFIGURE_LIBDIR.$(BITS))
198
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    95
CONFIGURE_OPTIONS +=	--with-features=huge
379
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    96
CONFIGURE_OPTIONS +=	--with-compiledby="the Solaris Userland build environment"
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    97
CONFIGURE_OPTIONS +=	--with-modified-by="Solaris Userland <[email protected]>"
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    98
CONFIGURE_OPTIONS +=	--enable-luainterp=dynamic
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
    99
# XXX Perl compilation fails, for some reason.
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
   100
# - Perl_croak_nocontext is redefined (embed.h, line 5157), having something to
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
   101
#   do with PERL_IMPLICIT_CONTEXT, which is discussed in perlguts(1).  This is
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
   102
#   just a warning, but looks like it might have nasty consequences.
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
   103
# - The declaration of Perl_Gthr_key_ptr() has a problem with its argument of
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
   104
#   type pTHX.  if_perl.xs defines that to void if it's not already defined,
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
   105
#   but perl.h probably does something else to it, not sure what yet.  This
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
   106
#   also appears to have something to do with PERL_IMPLICIT_CONTEXT.
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
   107
# CONFIGURE_OPTIONS +=	--enable-perlinterp=dynamic
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
   108
CONFIGURE_OPTIONS +=	--enable-pythoninterp=dynamic
c6a17bba1da3 7038754 vim 7.3
Danek Duvall <danek.duvall@oracle.com>
parents: 198
diff changeset
   109
CONFIGURE_OPTIONS +=	--enable-rubyinterp=dynamic
198
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   110
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   111
# We build two variants: with and without X support.
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   112
$(NOX_VARIANT)/.configured:	CONFIGURE_OPTIONS += --without-x
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   113
$(NOX_VARIANT)/.configured:	CONFIGURE_OPTIONS += --disable-gui
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   114
$(NOX_VARIANT)/.configured:	CONFIGURE_OPTIONS += --disable-gtktest
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   115
$(X_VARIANT)/.configured:	CONFIGURE_OPTIONS += --with-vim-name=gvim
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   116
$(X_VARIANT)/.configured:	CONFIGURE_OPTIONS += --with-x
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   117
$(X_VARIANT)/.configured:	CONFIGURE_OPTIONS += --enable-gui=gtk2
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   118
$(X_VARIANT)/.configured:	CONFIGURE_OPTIONS += --enable-gtk2-check
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   119
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   120
# Vim's build is too smart for itself and configure can't run outside of a
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   121
# complete source tree.
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   122
COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   123
829
92b5de339d33 7166132 vim should be able to run its test suite
Petr Sumbera <petr.sumbera@oracle.com>
parents: 820
diff changeset
   124
COMPONENT_TEST_TARGETS = test
92b5de339d33 7166132 vim should be able to run its test suite
Petr Sumbera <petr.sumbera@oracle.com>
parents: 820
diff changeset
   125
198
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   126
$(SOURCE_DIR)/runtime/doc/uganda.txt: prep
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   127
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   128
$(BUILD_DIR)/license: $(SOURCE_DIR)/runtime/doc/uganda.txt
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   129
	nawk '/begin of license/ {p=1; getline; next} /end of license/ {p=0} p == 1 {print}' $< > [email protected]
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   130
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   131
# common targets
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   132
build:		$(BUILD_32)
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   133
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   134
install:	$(INSTALL_32) $(X_VARIANT)/.built $(BUILD_DIR)/license
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   135
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   136
test:		$(TEST_32)
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   137
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   138
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   139
172fc01ce997 7016732 move vim from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
   140
include ../../make-rules/depend.mk