annotate src/main.aap @ 696:f0a9ef4db025

updated for version 7.0210
author vimboss
date Tue, 28 Feb 2006 23:52:23 +0000
parents 0e922220d322
children cc3902a09300
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 # A-A-P recipe for building Vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 # There are no user choices in here!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 # Put configure arguments in the file config.arg.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 # Later there will be a config.txt file that contains examples and
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 # explanations.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 # Optional arguments:
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
9 # PREFIX=dir Overrules the install directory.
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
10 # Can be specified when installing only.
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
11 # Example: aap install PREFIX=$HOME
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 # Skip the configure stuff when "link.sh" is executing this recipe recursively
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 # to build pathdef.c or not building something and auto/config.aap does exist.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 @if ((_no.TARGETARG != "pathdef" and has_build_target())
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
17 @ or not os.path.exists("auto/config.aap")):
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 # A U T O C O N F
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 # Run autoconf when configure.in has been changed since it was last run.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 # This is skipped when the signatures in "mysign" are up-to-date. When
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 # there is no autoconf program skip this (the signature is often the only
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 # thing that's outdated)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 auto/configure {signfile = mysign} : configure.in
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
28 @if not program_path("autoconf"):
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
29 :print Can't find autoconf, using existing configure script.
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
30 @else:
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 # Move configure aside, autoconf would overwrite it
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 :move {exist} configure configure.save
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 :sys autoconf
663
0701ca4c8ceb updated for version 7.0196
vimboss
parents: 573
diff changeset
34 :cat configure | :eval re.sub('\\./config.log', 'auto/config.log', stdin) | :eval re.sub('>config.log', '>auto/config.log', stdin) >! auto/configure
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 :chmod 755 auto/configure
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 :move configure.save configure
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 :del {force} auto/config.cache auto/config.status
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 # Change the configure script to produce config.aap instead of config.mk.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 auto/configure.aap : auto/configure
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
41 :print Adjusting auto/configure for A-A-P.
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
42 :cat auto/configure | :eval re.sub("config.mk", "config.aap", stdin)
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
43 >! auto/configure.aap
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
44 :chmod 755 auto/configure.aap
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 # The configure script uses the directory where it's located, use a link.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 configure.aap: {buildcheck=}
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
48 :symlink {f} auto/configure.aap configure.aap
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 # Dependency: run configure.aap to update config.h and config.aap in the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 # "auto" directory.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 config {virtual} auto/config.h auto/config.aap :
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
53 auto/configure.aap configure.aap
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
54 config.arg config.h.in config.aap.in
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
55 :sys CONFIG_STATUS=auto/config.status
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 ./configure.aap `file2string("config.arg")`
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 --cache-file=auto/config.cache
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 # Configure arguments: create an empty "config.arg" file when its missing
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 config.arg:
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
61 :touch {exist} config.arg
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 # "auto/config.aap" contains a lot of settings, such as the name of the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 # executable "Target".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 # First update it, forcefully if the "reconfig" target was used.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 @if _no.TARGETARG != "comment" and _no.TARGETARG != "make":
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
67 @if "reconfig" in var2list(_no.TARGETARG):
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
68 :del {force} auto/config.cache auto/config.status
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
69 :update {force} auto/config.aap
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
70 @else:
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
71 :update auto/config.aap
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 # Include the recipe that autoconf generated.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 :include auto/config.aap
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75
690
0e922220d322 updated for version 7.0208
vimboss
parents: 663
diff changeset
76 # Unfortunately "-M" doesn't work when building for two architectures. Switch
0e922220d322 updated for version 7.0208
vimboss
parents: 663
diff changeset
77 # back to PPC only.
0e922220d322 updated for version 7.0208
vimboss
parents: 663
diff changeset
78 @if string.find(_no.CPPFLAGS, "-arch i386 -arch ppc") >= 0:
0e922220d322 updated for version 7.0208
vimboss
parents: 663
diff changeset
79 CPPFLAGS = `string.replace(_no.CPPFLAGS, "-arch i386 -arch ppc", "-arch ppc")`
0e922220d322 updated for version 7.0208
vimboss
parents: 663
diff changeset
80
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 # A "PREFIX=dir" argument overrules the value of $prefix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 @if _no.get("PREFIX"):
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 prefix = $PREFIX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 # Don't want "~/" in prefix.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 prefix = `os.path.expanduser(prefix)`
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 # G U I variant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 # The GUI is selected by configure, a lot of other things depend on it.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 :variant GUI
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 GTK
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
95 GUI_SRC = gui.c gui_gtk.c gui_gtk_x11.c pty.c gui_beval.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
96 gui_gtk_f.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
97 GUI_OBJ =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
98 GUI_DEFS = -DFEAT_GUI_GTK $NARROW_PROTO
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
99 GUI_IPATH = $GUI_INC_LOC
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
100 GUI_LIBS_DIR = $GUI_LIB_LOC
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
101 GUI_LIBS1 =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
102 GUI_LIBS2 = $GTK_LIBNAME
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
103 GUI_TARGETS = installglinks
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
104 GUI_MAN_TARGETS = installghelplinks
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
105 GUI_TESTTARGET = gui
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 MOTIF
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
107 GUI_SRC = gui.c gui_motif.c gui_x11.c pty.c gui_beval.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
108 gui_xmdlg.c gui_xmebw.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
109 GUI_OBJ =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
110 GUI_DEFS = -DFEAT_GUI_MOTIF $NARROW_PROTO
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
111 GUI_IPATH = $GUI_INC_LOC
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
112 GUI_LIBS_DIR = $GUI_LIB_LOC
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
113 GUI_LIBS1 =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
114 GUI_LIBS2 = $MOTIF_LIBNAME -lXt
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
115 GUI_TARGETS = installglinks
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
116 GUI_MAN_TARGETS = installghelplinks
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
117 GUI_TESTTARGET = gui
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 ATHENA
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
119 # XAW_LIB et al. can be overruled to use Xaw3d widgets
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
120 XAW_LIB ?= -lXaw
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
121 GUI_SRC = gui.c gui_athena.c gui_x11.c pty.c gui_beval.c \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
122 gui_at_sb.c gui_at_fs.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
123 GUI_OBJ =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
124 GUI_DEFS = -DFEAT_GUI_ATHENA $NARROW_PROTO
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
125 GUI_IPATH = $GUI_INC_LOC
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
126 GUI_LIBS_DIR = $GUI_LIB_LOC
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
127 GUI_LIBS1 = $XAW_LIB
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
128 GUI_LIBS2 = -lXt
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
129 GUI_TARGETS = installglinks
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
130 GUI_MAN_TARGETS = installghelplinks
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
131 GUI_TESTTARGET = gui
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 NEXTAW
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
133 # XAW_LIB et al. can be overruled to use Xaw3d widgets
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
134 XAW_LIB ?= -lXaw
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
135 GUI_SRC = gui.c gui_athena.c gui_x11.c pty.c gui_beval.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
136 gui_at_fs.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
137 GUI_OBJ =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
138 GUI_DEFS = -DFEAT_GUI_ATHENA -DFEAT_GUI_NEXTAW $NARROW_PROTO
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
139 GUI_IPATH = $GUI_INC_LOC
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
140 GUI_LIBS_DIR = $GUI_LIB_LOC
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
141 GUI_LIBS1 = $NEXTAW_LIB
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
142 GUI_LIBS2 = -lXt
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
143 GUI_TARGETS = installglinks
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
144 GUI_MAN_TARGETS = installghelplinks
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
145 GUI_TESTTARGET = gui
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 PHOTONGUI
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
147 GUI_SRC = gui.c gui_photon.c pty.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
148 GUI_OBJ =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
149 GUI_DEFS = -DFEAT_GUI_PHOTON
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
150 GUI_IPATH =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
151 GUI_LIBS_DIR =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
152 GUI_LIBS1 = -lph -lphexlib
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
153 GUI_LIBS2 =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
154 GUI_TARGETS = installglinks
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
155 GUI_MAN_TARGETS = installghelplinks
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
156 GUI_TESTTARGET = gui
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 *
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
158 GUI_SRC =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
159 GUI_OBJ =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
160 GUI_DEFS =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
161 GUI_IPATH =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
162 GUI_LIBS_DIR =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
163 GUI_LIBS1 =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
164 GUI_LIBS2 =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
165 GUI_TARGETS =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
166 GUI_MAN_TARGETS =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
167 GUI_TESTTARGET =
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 PRE_DEFS = -Iproto -I. $DEFS $GUI_DEFS $GUI_IPATH $CPPFLAGS $?(EXTRA_IPATHS)
16
3ba373b54370 updated for version 7.0008
vimboss
parents: 7
diff changeset
171 POST_DEFS = $X_CFLAGS $MZSCHEME_CFLAGS $PERL_CFLAGS $PYTHON_CFLAGS $TCL_CFLAGS $RUBY_CFLAGS $?(EXTRA_DEFS)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 CFLAGS = $PRE_DEFS $CONF_CFLAGS $?(PROFILE_CFLAGS) $POST_DEFS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 CPPFLAGS =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 ALL_LIB_DIRS = $GUI_LIBS_DIR $X_LIBS_DIR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 LDFLAGS = $ALL_LIB_DIRS $CONF_LDFLAGS
16
3ba373b54370 updated for version 7.0008
vimboss
parents: 7
diff changeset
177 LIBS = $GUI_LIBS1 $GUI_X_LIBS $GUI_LIBS2 $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS $CONF_LIBS $?(EXTRA_LIBS) $MZSCHEME_LIBS $PERL_LIBS $PYTHON_LIBS $TCL_LIBS $RUBY_LIBS $?(PROFILE_LIBS)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 Target = $VIMNAME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 # reconfig target also builds Vim (reconfiguration is handled above).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 reconfig {virtual}: $Target
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 # Execute the test scripts. Run these after compiling Vim, before installing.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 # This will produce a lot of garbage on your screen, including a few error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 # messages. Don't worry about that.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 # If there is a real error, there will be a difference between "test.out" and
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 # a "test99.ok" file.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 # If everything is allright, the final message will be "ALL DONE".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 test check:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 VimProg = ../$Target
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 :execute testdir/main.aap $GUI_TESTTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 testclean {virtual}:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 :del {force} testdir/*.out testdir/test.log
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 # When no fetch target exists we are not a child of the ../main.aap recipe,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 # Use ../main.aap to do the fetching.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 # --- If you get an error here for wrong number of arguments, you need to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 # update to a newer version of A-A-P.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 @if not has_target("fetch"):
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 fetch:
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
206 :execute ../main.aap fetch
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209 # All the source files that need to be compiled.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 # Some are optional and depend on configure.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 # "version.c" is missing, it's always compiled (see below).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 Source =
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
213 buffer.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
214 charset.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
215 diff.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
216 digraph.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
217 edit.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
218 eval.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
219 ex_cmds.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
220 ex_cmds2.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
221 ex_docmd.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
222 ex_eval.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
223 ex_getln.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
224 fileio.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
225 fold.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
226 getchar.c
446
7472c565592a updated for version 7.0117
vimboss
parents: 302
diff changeset
227 hardcopy.c
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
228 hashtable.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
229 if_cscope.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
230 if_xcmdsrv.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
231 main.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
232 mark.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
233 memfile.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
234 memline.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
235 menu.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
236 message.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
237 misc1.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
238 misc2.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
239 move.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
240 mbyte.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
241 normal.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
242 ops.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
243 option.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
244 os_unix.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
245 auto/pathdef.c
539
b13dbb7b797c updated for version 7.0153
vimboss
parents: 532
diff changeset
246 popupmenu.c
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
247 quickfix.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
248 regexp.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
249 screen.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
250 search.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
251 spell.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
252 syntax.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
253 tag.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
254 term.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
255 ui.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
256 undo.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
257 window.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
258 $OS_EXTRA_SRC
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
259 $GUI_SRC
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
260 $HANGULIN_SRC
16
3ba373b54370 updated for version 7.0008
vimboss
parents: 7
diff changeset
261 $MZSCHEME_SRC
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
262 $PERL_SRC
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
263 $NETBEANS_SRC
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
264 $PYTHON_SRC
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
265 $TCL_SRC
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
266 $RUBY_SRC
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
267 $SNIFF_SRC
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
268 $WORKSHOP_SRC
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
269
16
3ba373b54370 updated for version 7.0008
vimboss
parents: 7
diff changeset
270 Objects =
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
271 $GUI_OBJ
16
3ba373b54370 updated for version 7.0008
vimboss
parents: 7
diff changeset
272
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273 # TODO: make is still used for subdirectories, need to write a recipe.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
274 MAKE ?= make
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
275
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
276 all: $Target
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
277
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
278 # This dependency is required to build auto/osdef.h before automatic
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
279 # dependencies are generated.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
280 $Source version.c : auto/osdef.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
281
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
282 # Need to mention that the target also depends on version.c, since it's not
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
283 # inluded in $Source
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
284 $Target : version.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
285
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
286 # Some sources are to be found in the "auto" directory.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
287 SRCPATH += auto
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
288
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
289 # When building Vim always compile version.c to get the timestamp.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
290 :filetype
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
291 declare my_prog
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
292 :attr {filetype = my_prog} $Target
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
293
16
3ba373b54370 updated for version 7.0008
vimboss
parents: 7
diff changeset
294 :program $Target : $Source $Objects
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
295
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
296 :action build my_prog object
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
297 version_obj = `src2obj("version.c")`
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
298 :do compile {target = $version_obj} version.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
299 #:do build {target = $target {filetype = program}} $source $version_obj
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
300 link_sed = $BDIR/link.sed
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
301 @if os.path.exists(link_sed):
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
302 :move {force} $link_sed auto/link.sed
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
303 @else:
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
304 :del {force} auto/link.sed
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
305 :update link2.sh
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
306 :sys LINK="$?(PURIFY) $?(SHRPENV) $CC $LDFLAGS \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
307 -o $target $source $version_obj $LIBS" \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
308 MAKE="aap" sh ./link2.sh
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
309 :copy {force} auto/link.sed $BDIR/link.sed
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
310
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
311 # "link.sh" must be modified for A-A-P
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
312 link2.sh : link.sh
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
313 :print Adjusting $-source for A-A-P.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
314 :cat $source | :eval re.sub("objects/pathdef.o", "pathdef", stdin)
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
315 >! $target
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
316
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
317 xxd/xxd$EXESUF: xxd/xxd.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
318 :sys cd xxd; CC="$CC" CFLAGS="$CPPFLAGS $CFLAGS" \
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
319 $MAKE -f Makefile
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
320
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
321 # Build the language specific files if they were unpacked.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
322 # Generate the converted .mo files separately, it's no problem if this fails.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
323 languages {virtual}:
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
324 @if _no.MAKEMO:
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
325 :sys cd $PODIR; CC="$CC" $MAKE prefix=$DESTDIR$prefix
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
326 @try:
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
327 :sys cd $PODIR; CC="$CC" $MAKE prefix=$DESTDIR$prefix converted
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
328 @except:
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
329 :print Generated converted language files failed, continuing
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
330
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
331 # Update the *.po files for changes in the sources. Only run manually.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
332 update-po {virtual}:
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
333 cd $PODIR; CC="$CC" $MAKE prefix=$DESTDIR$prefix update-po
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
334
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
335 auto/if_perl.c: if_perl.xs
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
336 :sys $PERL -e 'unless ( $$] >= 5.005 ) { for (qw(na defgv errgv)) { print "#define PL_$$_ $$_\n" }}' > $target
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
337 :sys $PERL $PERLLIB/ExtUtils/xsubpp -prototypes -typemap \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
338 $PERLLIB/ExtUtils/typemap if_perl.xs >> $target
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
339
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
340 auto/osdef.h: auto/config.h osdef.sh osdef1.h.in osdef2.h.in
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
341 :sys CC="$CC $CFLAGS" srcdir=$srcdir sh $srcdir/osdef.sh
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
342
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
343 pathdef {virtual} : $BDIR/auto/pathdef$OBJSUF
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
344
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
345 auto/pathdef.c: auto/config.aap
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
346 :print Creating $target
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
347 :print >! $target /* pathdef.c */
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
348 :print >> $target /* This file is automatically created by main.aap */
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
349 :print >> $target /* DO NOT EDIT! Change main.aap only. */
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
350 :print >> $target $#include "vim.h"
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
351 :print >> $target char_u *default_vim_dir = (char_u *)"$VIMRCLOC";
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
352 :print >> $target char_u *default_vimruntime_dir = (char_u *)"$?VIMRUNTIMEDIR";
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
353 v = $CC -c -I$srcdir $CFLAGS
16
3ba373b54370 updated for version 7.0008
vimboss
parents: 7
diff changeset
354 @v = string.replace(v, '"', '\\"')
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
355 :print >> $target char_u *all_cflags = (char_u *)"$v";
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
356 linkcmd = $CC $LDFLAGS -o $VIMTARGET $LIBS
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
357 link_sed = $BDIR/link.sed
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
358 @if os.path.exists(link_sed):
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
359 # filter $linkcmd through $BDIR/link.sed
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
360 :print $linkcmd | :syseval sed -f $link_sed | :eval re.sub("\n", "", stdin) | :assign linkcmd
16
3ba373b54370 updated for version 7.0008
vimboss
parents: 7
diff changeset
361 @linkcmd = string.replace(linkcmd, '"', '\\"')
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
362 :print >> $target char_u *all_lflags = (char_u *)"$linkcmd";
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
363 @if _no.get("COMPILEDBY"):
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
364 who = $COMPILEDBY
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
365 where = ''
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
366 @else:
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
367 :syseval whoami | :eval re.sub("\n", "", stdin) | :assign who
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
368
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
369 :syseval hostname | :eval re.sub("\n", "", stdin) | :assign where
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
370 :print >> $target char_u *compiled_user = (char_u *)"$who";
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
371 :print >> $target char_u *compiled_sys = (char_u *)"$where";
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
372
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
373
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
374 ### Names of the programs and targets
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
375 VIMTARGET = $VIMNAME$EXESUF
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
376 EXTARGET = $EXNAME$LNKSUF
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
377 VIEWTARGET = $VIEWNAME$LNKSUF
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
378 GVIMNAME = g$VIMNAME
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
379 GVIMTARGET = $GVIMNAME$LNKSUF
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
380 GVIEWNAME = g$VIEWNAME
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
381 GVIEWTARGET = $GVIEWNAME$LNKSUF
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
382 RVIMNAME = r$VIMNAME
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
383 RVIMTARGET = $RVIMNAME$LNKSUF
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
384 RVIEWNAME = r$VIEWNAME
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
385 RVIEWTARGET = $RVIEWNAME$LNKSUF
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
386 RGVIMNAME = r$GVIMNAME
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
387 RGVIMTARGET = $RGVIMNAME$LNKSUF
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
388 RGVIEWNAME = r$GVIEWNAME
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
389 RGVIEWTARGET = $RGVIEWNAME$LNKSUF
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
390 VIMDIFFNAME = $(VIMNAME)diff
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
391 GVIMDIFFNAME = g$VIMDIFFNAME
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
392 VIMDIFFTARGET = $VIMDIFFNAME$LNKSUF
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
393 GVIMDIFFTARGET = $GVIMDIFFNAME$LNKSUF
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
394 EVIMNAME = e$VIMNAME
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
395 EVIMTARGET = $EVIMNAME$LNKSUF
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
396 EVIEWNAME = e$VIEWNAME
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
397 EVIEWTARGET = $EVIEWNAME$LNKSUF
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
398
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
399 ### Names of the tools that are also made
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
400 TOOLS = xxd/xxd$EXESUF
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
401
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
402 # Root of the installation tree. Empty for a normal install, set to an
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
403 # existing path to install into a special place (for generating a package).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
404 DESTDIR ?=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
405
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
406 ### Location of man pages
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
407 MANSUBDIR = $MANDIR/man1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
408
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
409 ### Location of Vim files (should not need to be changed, and
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
410 ### some things might not work when they are changed!)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
411 VIMDIR = /vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
412 @r = re.compile('.*VIM_VERSION_NODOT\\s*"(vim\\d\\d[^"]*)".*', re.S)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
413 VIMRTDIR = /`r.match(open("version.h").read()).group(1)`
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
414 HELPSUBDIR = /doc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
415 COLSUBDIR = /colors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
416 SYNSUBDIR = /syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
417 INDSUBDIR = /indent
446
7472c565592a updated for version 7.0117
vimboss
parents: 302
diff changeset
418 AUTOSUBDIR = /autoload
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
419 PLUGSUBDIR = /plugin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
420 FTPLUGSUBDIR = /ftplugin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
421 LANGSUBDIR = /lang
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
422 COMPSUBDIR = /compiler
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
423 KMAPSUBDIR = /keymap
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
424 MACROSUBDIR = /macros
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
425 TOOLSSUBDIR = /tools
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
426 TUTORSUBDIR = /tutor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
427 PRINTSUBDIR = /print
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
428 PODIR = po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
429
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
430 ### VIMLOC common root of the Vim files (all versions)
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
431 ### VIMRTLOC common root of the runtime Vim files (this version)
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
432 ### VIMRCLOC compiled-in location for global [g]vimrc files (all versions)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
433 ### VIMRUNTIMEDIR compiled-in location for runtime files (optional)
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
434 ### HELPSUBLOC location for help files
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
435 ### COLSUBLOC location for colorscheme files
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
436 ### SYNSUBLOC location for syntax files
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
437 ### INDSUBLOC location for indent files
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
438 ### AUTOSUBLOC location for standard autoload files
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
439 ### PLUGSUBLOC location for standard plugin files
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
440 ### FTPLUGSUBLOC location for ftplugin files
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
441 ### LANGSUBLOC location for language files
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
442 ### COMPSUBLOC location for compiler files
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
443 ### KMAPSUBLOC location for keymap files
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
444 ### MACROSUBLOC location for macro files
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
445 ### TOOLSSUBLOC location for tools files
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
446 ### TUTORSUBLOC location for tutor files
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
447 ### PRINTSUBLOC location for print files
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
448 ### SCRIPTLOC location for script files (menu.vim, bugreport.vim, ..)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
449 ### You can override these if you want to install them somewhere else.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
450 ### Edit feature.h for compile-time settings.
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
451 VIMLOC = $DATADIR$VIMDIR
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
452 VIMRTLOC = $DATADIR$VIMDIR$VIMRTDIR
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
453 VIMRCLOC = $VIMLOC
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
454 HELPSUBLOC = $VIMRTLOC$HELPSUBDIR
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
455 COLSUBLOC = $VIMRTLOC$COLSUBDIR
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
456 SYNSUBLOC = $VIMRTLOC$SYNSUBDIR
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
457 INDSUBLOC = $VIMRTLOC$INDSUBDIR
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
458 AUTOSUBLOC = $VIMRTLOC$AUTOSUBDIR
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
459 PLUGSUBLOC = $VIMRTLOC$PLUGSUBDIR
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
460 FTPLUGSUBLOC = $VIMRTLOC$FTPLUGSUBDIR
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
461 LANGSUBLOC = $VIMRTLOC$LANGSUBDIR
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
462 COMPSUBLOC = $VIMRTLOC$COMPSUBDIR
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
463 KMAPSUBLOC = $VIMRTLOC$KMAPSUBDIR
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
464 MACROSUBLOC = $VIMRTLOC$MACROSUBDIR
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
465 TOOLSSUBLOC = $VIMRTLOC$TOOLSSUBDIR
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
466 TUTORSUBLOC = $VIMRTLOC$TUTORSUBDIR
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
467 PRINTSUBLOC = $VIMRTLOC$PRINTSUBDIR
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
468 SCRIPTLOC = $VIMRTLOC
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
469
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
470 ### Only set VIMRUNTIMEDIR when VIMRTLOC is set to a different location and
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
471 ### the runtime directory is not below it.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
472 #VIMRUNTIMEDIR = $VIMRTLOC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
473
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
474 ### Name of the evim file target.
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
475 EVIM_FILE = $DESTDIR$SCRIPTLOC/evim.vim
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
476 MSWIN_FILE = $DESTDIR$SCRIPTLOC/mswin.vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
477
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
478 ### Name of the menu file target.
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
479 SYS_MENU_FILE = $DESTDIR$SCRIPTLOC/menu.vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
480 SYS_SYNMENU_FILE = $DESTDIR$SCRIPTLOC/synmenu.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
481 SYS_DELMENU_FILE = $DESTDIR$SCRIPTLOC/delmenu.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
482
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
483 ### Name of the bugreport file target.
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
484 SYS_BUGR_FILE = $DESTDIR$SCRIPTLOC/bugreport.vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
485
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
486 ### Name of the file type detection file target.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
487 SYS_FILETYPE_FILE = $DESTDIR$SCRIPTLOC/filetype.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
488
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
489 ### Name of the file type detection file target.
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
490 SYS_FTOFF_FILE = $DESTDIR$SCRIPTLOC/ftoff.vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
491
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
492 ### Name of the file type detection script file target.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
493 SYS_SCRIPTS_FILE = $DESTDIR$SCRIPTLOC/scripts.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
494
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
495 ### Name of the ftplugin-on file target.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
496 SYS_FTPLUGIN_FILE = $DESTDIR$SCRIPTLOC/ftplugin.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
497
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
498 ### Name of the ftplugin-off file target.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
499 SYS_FTPLUGOF_FILE = $DESTDIR$SCRIPTLOC/ftplugof.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
500
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
501 ### Name of the indent-on file target.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
502 SYS_INDENT_FILE = $DESTDIR$SCRIPTLOC/indent.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
503
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
504 ### Name of the indent-off file target.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
505 SYS_INDOFF_FILE = $DESTDIR$SCRIPTLOC/indoff.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
506
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
507 ### Name of the option window script file target.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
508 SYS_OPTWIN_FILE = $DESTDIR$SCRIPTLOC/optwin.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
509
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
510 ### Permissions for binaries
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
511 BINMOD = 755
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
512
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
513 ### Permissions for man page
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
514 MANMOD = 644
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
515
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
516 ### Permissions for help files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
517 HELPMOD = 644
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
518
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
519 ### Permissions for Perl and shell scripts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
520 SCRIPTMOD = 755
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
521
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
522 ### Permission for Vim script files (menu.vim, bugreport.vim, ..)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
523 VIMSCRIPTMOD = 644
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
524
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
525 ### Permissions for all directories that are created
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
526 DIRMOD = 755
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
527
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
528 ### Permissions for all other files that are created
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
529 FILEMOD = 644
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
530
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
531 # Where to copy the man and help files from
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
532 HELPSOURCE = ../runtime/doc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
533
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
534 # Where to copy the script files from (menu, bugreport)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
535 SCRIPTSOURCE = ../runtime
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
536
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
537 # Where to copy the colorscheme files from
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
538 COLSOURCE = ../runtime/colors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
539
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
540 # Where to copy the syntax files from
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
541 SYNSOURCE = ../runtime/syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
542
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
543 # Where to copy the indent files from
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
544 INDSOURCE = ../runtime/indent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
545
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
546 # Where to copy the standard plugin files from
446
7472c565592a updated for version 7.0117
vimboss
parents: 302
diff changeset
547 AUTOSOURCE = ../runtime/autoload
7472c565592a updated for version 7.0117
vimboss
parents: 302
diff changeset
548
7472c565592a updated for version 7.0117
vimboss
parents: 302
diff changeset
549 # Where to copy the standard plugin files from
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
550 PLUGSOURCE = ../runtime/plugin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
551
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
552 # Where to copy the ftplugin files from
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
553 FTPLUGSOURCE = ../runtime/ftplugin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
554
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
555 # Where to copy the macro files from
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
556 MACROSOURCE = ../runtime/macros
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
557
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
558 # Where to copy the tools files from
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
559 TOOLSSOURCE = ../runtime/tools
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
560
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
561 # Where to copy the tutor files from
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
562 TUTORSOURCE = ../runtime/tutor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
563
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
564 # Where to look for language specific files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
565 LANGSOURCE = ../runtime/lang
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
566
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
567 # Where to look for compiler files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
568 COMPSOURCE = ../runtime/compiler
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
569
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
570 # Where to look for keymap files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
571 KMAPSOURCE = ../runtime/keymap
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
572
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
573 # Where to look for print resource files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
574 PRINTSOURCE = ../runtime/print
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
575
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
576 # abbreviations
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
577 DEST_BIN = $DESTDIR$BINDIR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
578 DEST_VIM = $DESTDIR$VIMLOC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
579 DEST_RT = $DESTDIR$VIMRTLOC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
580 DEST_HELP = $DESTDIR$HELPSUBLOC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
581 DEST_COL = $DESTDIR$COLSUBLOC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
582 DEST_SYN = $DESTDIR$SYNSUBLOC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
583 DEST_IND = $DESTDIR$INDSUBLOC
446
7472c565592a updated for version 7.0117
vimboss
parents: 302
diff changeset
584 DEST_AUTO = $DESTDIR$AUTOSUBLOC
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
585 DEST_PLUG = $DESTDIR$PLUGSUBLOC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
586 DEST_FTP = $DESTDIR$FTPLUGSUBLOC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
587 DEST_LANG = $DESTDIR$LANGSUBLOC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
588 DEST_COMP = $DESTDIR$COMPSUBLOC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
589 DEST_KMAP = $DESTDIR$KMAPSUBLOC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
590 DEST_MACRO = $DESTDIR$MACROSUBLOC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
591 DEST_TOOLS = $DESTDIR$TOOLSSUBLOC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
592 DEST_TUTOR = $DESTDIR$TUTORSUBLOC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
593 DEST_SCRIPT = $DESTDIR$SCRIPTLOC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
594 DEST_PRINT = $DESTDIR$PRINTSUBLOC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
595 DEST_MAN = $DESTDIR$MANSUBDIR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
596
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
597 # These are directories, create them when needed.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
598 :attr {directory = $DIRMOD} $DEST_BIN $DEST_VIM $DEST_RT $DEST_HELP $DEST_COL
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
599 $DEST_SYN $DEST_IND $DEST_AUTO $DEST_PLUG $DEST_FTP $DEST_LANG
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
600 $DEST_COMP $DEST_KMAP $DEST_MACRO $DEST_TOOLS $DEST_TUTOR
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
601 $DEST_SCRIPT $DEST_PRINT $DEST_MAN
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
602
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
603 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
604 # I N S T A L L
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
605 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
606 install:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
607 @if not os.path.isdir(_no.DEST_BIN):
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
608 @try:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
609 :mkdir $DEST_BIN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
610 @except:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
611 @ pass
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
612 @if os.access(_no.DEST_BIN, os.W_OK):
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
613 # Bin directory is writable, install directly.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
614 :update installvim installtools install-languages install-icons
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
615 @else:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
616 # Bin directory is not writable, need to become root.
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
617 :print The destination directory "$DEST_BIN" is not writable.
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
618 :print If this is the wrong directory, use PREFIX to specify another one.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
619 :print Otherwise, type the root password to continue installing.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
620 :asroot $AAP install
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
621
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
622 installvim {virtual}: installvimbin installruntime installlinks \
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
623 installhelplinks installmacros installtutor
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
624
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
625 installvimbin {virtual}{force}: $Target $DEST_BIN
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
626 exe = $DEST_BIN/$VIMTARGET
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
627 @if os.path.exists(exe):
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
628 # Move the old executable aside and delete it. Any other method
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
629 # may cause a crash if the executable is currently being used.
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
630 :move {force} $exe $(exe).rm
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
631 :del {force} $(exe).rm
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
632 :copy $VIMTARGET $DEST_BIN
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
633 :do strip $exe
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
634 :chmod $BINMOD $DEST_BIN/$VIMTARGET
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
635 # may create a link to the new executable from /usr/bin/vi
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
636 @if _no.get("LINKIT"):
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
637 :sys $LINKIT
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
638
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
639 # install the help files; first adjust the contents for the location
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
640 installruntime {virtual}{force}: $HELPSOURCE/vim.1 $DEST_MAN $DEST_VIM
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
641 $DEST_RT $DEST_HELP $DEST_COL $DEST_SYN $DEST_IND
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
642 $DEST_FTP $DEST_AUTO $DEST_PLUG $DEST_TUTOR $DEST_COMP
446
7472c565592a updated for version 7.0117
vimboss
parents: 302
diff changeset
643 $DEST_PRINT
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
644 :print generating $DEST_MAN/$(VIMNAME).1
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
645 :cat $HELPSOURCE/vim.1 |
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
646 :eval re.sub("/usr/local/lib/vim", _no.VIMLOC, stdin) |
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
647 :eval re.sub(_no.VIMLOC + "/doc", _no.HELPSUBLOC, stdin) |
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
648 :eval re.sub(_no.VIMLOC + "/syntax", _no.SYNSUBLOC, stdin) |
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
649 :eval re.sub(_no.VIMLOC + "/tutor", _no.TUTORSUBLOC, stdin) |
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
650 :eval re.sub(_no.VIMLOC + "/vimrc",
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
651 _no.VIMRCLOC + "/vimrc", stdin) |
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
652 :eval re.sub(_no.VIMLOC + "/gvimrc",
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
653 _no.VIMRCLOC + "/gvimrc", stdin) |
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
654 :eval re.sub(_no.VIMLOC + "/menu.vim",
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
655 _no.SCRIPTLOC + "/menu.vim", stdin) |
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
656 :eval re.sub(_no.VIMLOC + "/bugreport.vim",
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
657 _no.SCRIPTLOC + "/bugreport.vim", stdin) |
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
658 :eval re.sub(_no.VIMLOC + "/filetype.vim",
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
659 _no.SCRIPTLOC + "/filetype.vim", stdin) |
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
660 :eval re.sub(_no.VIMLOC + "/ftoff.vim",
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
661 _no.SCRIPTLOC + "/ftoff.vim", stdin) |
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
662 :eval re.sub(_no.VIMLOC + "/scripts.vim",
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
663 _no.SCRIPTLOC + "/scripts.vim", stdin) |
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
664 :eval re.sub(_no.VIMLOC + "/optwin.vim",
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
665 _no.SCRIPTLOC + "/optwin.vim", stdin) |
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
666 :eval re.sub(_no.VIMLOC + "/\\*.ps",
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
667 _no.SCRIPTLOC + "/*.ps", stdin)
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
668 >! $DEST_MAN/$(VIMNAME).1
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
669 :chmod $MANMOD $DEST_MAN/$(VIMNAME).1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
670
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
671 :print generating $DEST_MAN/$(VIMNAME)tutor.1
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
672 :cat $HELPSOURCE/vimtutor.1 |
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
673 :eval re.sub("/usr/local/lib/vim", _no.VIMLOC, stdin) |
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
674 :eval re.sub(_no.VIMLOC + "/tutor", _no.TUTORSUBLOC, stdin)
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
675 >! $DEST_MAN/$(VIMNAME)tutor.1
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
676 :chmod $MANMOD $DEST_MAN/$(VIMNAME)tutor.1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
677
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
678 :copy $HELPSOURCE/vimdiff.1 $DEST_MAN/$(VIMDIFFNAME).1
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
679 :chmod $MANMOD $DEST_MAN/$(VIMDIFFNAME).1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
680
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
681 :print generating $DEST_MAN/$(EVIMNAME).1
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
682 :cat $HELPSOURCE/evim.1 |
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
683 :eval re.sub("/usr/local/lib/vim", _no.SCRIPTLOC, stdin)
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
684 >! $DEST_MAN/$(EVIMNAME).1
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
685 :chmod $MANMOD $DEST_MAN/$(EVIMNAME).1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
686
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
687 :cd $HELPSOURCE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
688 @try:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
689 XTRA = `glob.glob("*.??x")` `glob.glob("tags-??")`
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
690 @except:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
691 XTRA = # It's OK if there are no matches.
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
692 :copy *.txt tags $XTRA $DEST_HELP
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
693 :cd -
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
694 :cd $DEST_HELP
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
695 :chmod $HELPMOD *.txt tags $XTRA
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
696 :cd -
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
697 :copy $HELPSOURCE/*.pl $DEST_HELP
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
698 :chmod $SCRIPTMOD $DEST_HELP/*.pl
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
699 # install the menu files
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
700 :copy $SCRIPTSOURCE/menu.vim $SYS_MENU_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
701 :chmod $VIMSCRIPTMOD $SYS_MENU_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
702 :copy $SCRIPTSOURCE/synmenu.vim $SYS_SYNMENU_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
703 :chmod $VIMSCRIPTMOD $SYS_SYNMENU_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
704 :copy $SCRIPTSOURCE/delmenu.vim $SYS_DELMENU_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
705 :chmod $VIMSCRIPTMOD $SYS_DELMENU_FILE
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
706 # install the evim file
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
707 :copy $SCRIPTSOURCE/mswin.vim $MSWIN_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
708 :chmod $VIMSCRIPTMOD $MSWIN_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
709 :copy $SCRIPTSOURCE/evim.vim $EVIM_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
710 :chmod $VIMSCRIPTMOD $EVIM_FILE
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
711 # install the bugreport file
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
712 :copy $SCRIPTSOURCE/bugreport.vim $SYS_BUGR_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
713 :chmod $VIMSCRIPTMOD $SYS_BUGR_FILE
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
714 # install the example vimrc files
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
715 :copy $SCRIPTSOURCE/vimrc_example.vim $DEST_SCRIPT
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
716 :chmod $VIMSCRIPTMOD $DEST_SCRIPT/vimrc_example.vim
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
717 :copy $SCRIPTSOURCE/gvimrc_example.vim $DEST_SCRIPT
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
718 :chmod $VIMSCRIPTMOD $DEST_SCRIPT/gvimrc_example.vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
719 # install the file type detection files
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
720 :copy $SCRIPTSOURCE/filetype.vim $SYS_FILETYPE_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
721 :chmod $VIMSCRIPTMOD $SYS_FILETYPE_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
722 :copy $SCRIPTSOURCE/ftoff.vim $SYS_FTOFF_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
723 :chmod $VIMSCRIPTMOD $SYS_FTOFF_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
724 :copy $SCRIPTSOURCE/scripts.vim $SYS_SCRIPTS_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
725 :chmod $VIMSCRIPTMOD $SYS_SCRIPTS_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
726 :copy $SCRIPTSOURCE/ftplugin.vim $SYS_FTPLUGIN_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
727 :chmod $VIMSCRIPTMOD $SYS_FTPLUGIN_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
728 :copy $SCRIPTSOURCE/ftplugof.vim $SYS_FTPLUGOF_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
729 :chmod $VIMSCRIPTMOD $SYS_FTPLUGOF_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
730 :copy $SCRIPTSOURCE/indent.vim $SYS_INDENT_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
731 :chmod $VIMSCRIPTMOD $SYS_INDENT_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
732 :copy $SCRIPTSOURCE/indoff.vim $SYS_INDOFF_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
733 :chmod $VIMSCRIPTMOD $SYS_INDOFF_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
734 :copy $SCRIPTSOURCE/optwin.vim $SYS_OPTWIN_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
735 :chmod $VIMSCRIPTMOD $SYS_OPTWIN_FILE
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
736 # install the print resource files
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
737 :copy $PRINTSOURCE/*.ps $DEST_PRINT
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
738 :chmod $FILEMOD $DEST_PRINT/*.ps
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
739 # install the colorscheme files
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
740 :copy $COLSOURCE/*.vim $COLSOURCE/README.txt $DEST_COL
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
741 :chmod $HELPMOD $DEST_COL/*.vim $DEST_COL/README.txt
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
742 # install the syntax files
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
743 :copy $SYNSOURCE/*.vim $SYNSOURCE/README.txt $DEST_SYN
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
744 :chmod $HELPMOD $DEST_SYN/*.vim $DEST_SYN/README.txt
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
745 # install the indent files
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
746 :copy $INDSOURCE/*.vim $INDSOURCE/README.txt $DEST_IND
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
747 :chmod $HELPMOD $DEST_IND/*.vim
446
7472c565592a updated for version 7.0117
vimboss
parents: 302
diff changeset
748 # install the standard autoload files
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
749 :copy $AUTOSOURCE/*.vim $AUTOSOURCE/README.txt $DEST_AUTO
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
750 :chmod $HELPMOD $DEST_AUTO/*.vim $DEST_AUTO/README.txt
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
751 # install the standard plugin files
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
752 :copy $PLUGSOURCE/*.vim $PLUGSOURCE/README.txt $DEST_PLUG
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
753 :chmod $HELPMOD $DEST_PLUG/*.vim $DEST_PLUG/README.txt
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
754 # install the ftplugin files
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
755 :copy $FTPLUGSOURCE/*.vim $FTPLUGSOURCE/README.txt $DEST_FTP
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
756 :chmod $HELPMOD $DEST_FTP/*.vim $DEST_FTP/README.txt
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
757 # install the compiler files
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
758 :copy $COMPSOURCE/*.vim $COMPSOURCE/README.txt $DEST_COMP
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
759 :chmod $HELPMOD $DEST_COMP/*.vim $DEST_COMP/README.txt
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
760
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
761 installmacros {virtual}{force}: $MACROSOURCE $DEST_VIM $DEST_RT $DEST_MACRO
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
762 :copy {recursive}{force} $MACROSOURCE/* $DEST_MACRO
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
763 # Delete any CVS and AAPDIR directories.
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
764 # Use the ":tree" command if possible. It was added later, fall back
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
765 # to using "find" when it doesn't work.
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
766 @try:
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
767 :tree $DEST_MACRO {dirname = CVS}
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
768 :del {recursive} $name
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
769 :tree $DEST_MACRO {dirname = AAPDIR}
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
770 :del {recursive} $name
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
771 :tree $DEST_MACRO {dirname = .*}
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
772 :chmod $DIRMOD $name
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
773 :tree $DEST_MACRO {filename = .*}
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
774 :chmod $FILEMOD $name
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
775 @except:
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
776 @ ok, cvsdirs = redir_system('find %s -name CVS -print' % _no.DEST_MACRO)
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
777 @ if ok and cvsdirs:
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
778 :del {recursive} $cvsdirs
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
779 :sys chmod $DIRMOD ``find $DEST_MACRO -type d -print``
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
780 :sys chmod $FILEMOD ``find $DEST_MACRO -type f -print``
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
781 :chmod $SCRIPTMOD $DEST_MACRO/less.sh
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
782
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
783 # install the tutor files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
784 installtutor {virtual}{force}: $TUTORSOURCE $DEST_VIM $DEST_RT $DEST_TUTOR
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
785 :copy vimtutor $DEST_BIN/$(VIMNAME)tutor
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
786 :chmod $SCRIPTMOD $DEST_BIN/$(VIMNAME)tutor
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
787 :copy $TUTORSOURCE/tutor* $TUTORSOURCE/README* $DEST_TUTOR
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
788 :chmod $HELPMOD $DEST_TUTOR/*
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
789
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
790 # install helper program xxd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
791 installtools {virtual}{force}: $TOOLS $DEST_BIN $DEST_MAN \
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
792 $TOOLSSOURCE $DEST_VIM $DEST_RT $DEST_TOOLS
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
793 xxd = $DEST_BIN/xxd$EXESUF
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
794 @if os.path.exists(xxd):
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
795 :move {force} $xxd $(xxd).rm
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
796 :del $(xxd).rm
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
797 :copy xxd/xxd$EXESUF $DEST_BIN
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
798 :do strip $DEST_BIN/xxd$EXESUF
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
799 :chmod $BINMOD $DEST_BIN/xxd$EXESUF
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
800 :copy $HELPSOURCE/xxd.1 $DEST_MAN
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
801 :chmod $MANMOD $DEST_MAN/xxd.1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
802 # install the runtime tools
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
803 @try:
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
804 @ if aap_has(":tree"):
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
805 # New method: copy everything and delete CVS and AAPDIR dirs
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
806 :copy {recursive} $TOOLSSOURCE/* $DEST_TOOLS
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
807 :tree $DEST_TOOLS {dirname = CVS}
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
808 :delete {recursive} $name
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
809 :tree $DEST_TOOLS {dirname = AAPDIR}
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
810 :delete {recursive} $name
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
811 @except:
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
812 # Old method: copy only specific files and directories.
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
813 :copy {recursive} $TOOLSSOURCE/README.txt $TOOLSSOURCE/[a-z]* $DEST_TOOLS
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
814 :chmod $FILEMOD $DEST_TOOLS/*
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
815 # replace the path in some tools
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
816 :progsearch perlpath perl
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
817 @if perlpath:
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
818 :cat $TOOLSSOURCE/efm_perl.pl |
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
819 :eval re.sub("/usr/bin/perl", perlpath, stdin)
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
820 >! $DEST_TOOLS/efm_perl.pl
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
821 @else:
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
822 :copy $TOOLSSOURCE/efm_perl.pl $DEST_TOOLS
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
823
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
824 :progsearch awkpath nawk gawk awk
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
825 @if awkpath:
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
826 :cat $TOOLSSOURCE/mve.awk |
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
827 :eval re.sub("/usr/bin/nawk", awkpath, stdin)
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
828 >! $DEST_TOOLS/mve.awk
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
829 @else:
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
830 :copy $TOOLSSOURCE/mve.awk $DEST_TOOLS
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
831
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
832 :sys chmod $SCRIPTMOD ``grep -l "^#!" $DEST_TOOLS/*``
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
833
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
834 # install the language specific files, if they were unpacked
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
835 install-languages {virtual}{force}: languages $DEST_LANG $DEST_KMAP
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
836 @if _no.MAKEMO:
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
837 :sys cd $PODIR; $MAKE prefix=$DESTDIR$prefix \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
838 LOCALEDIR=$DEST_LANG INSTALL_DATA=cp FILEMOD=$FILEMOD install
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
839 @if os.path.exists(_no.LANGSOURCE):
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
840 :print installing language files
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
841 :copy $LANGSOURCE/README.txt $LANGSOURCE/*.vim $DEST_LANG
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
842 :chmod $FILEMOD $DEST_LANG/*.vim
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
843 @if os.path.exists(_no.KMAPSOURCE):
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
844 :copy $KMAPSOURCE/README.txt $KMAPSOURCE/*.vim $DEST_KMAP
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
845 :chmod $FILEMOD $DEST_KMAP/*.vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
846
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
847 # install the icons for KDE, if the directory exists and the icon doesn't.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
848 ICON48PATH = $DESTDIR$DATADIR/icons/hicolor/48x48/apps
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
849 ICON32PATH = $DESTDIR$DATADIR/icons/locolor/32x32/apps
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
850 ICON16PATH = $DESTDIR$DATADIR/icons/locolor/16x16/apps
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
851 KDEPATH = $HOME/.kde/share/icons
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
852 install-icons {virtual}:
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
853 gp = $ICON48PATH/gvim.png
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
854 @if os.path.isdir(_no.ICON48PATH) and not os.path.exists(gp):
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
855 :copy $SCRIPTSOURCE/vim48x48.png $gp
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
856 gp = $ICON32PATH/gvim.png
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
857 @if os.path.isdir(_no.ICON32PATH) and not os.path.exists(gp):
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
858 :copy $SCRIPTSOURCE/vim32x32.png $gp
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
859 gp = $ICON16PATH/gvim.png
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
860 @if os.path.isdir(_no.ICON16PATH) and not os.path.exists(gp):
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
861 :copy $SCRIPTSOURCE/vim16x16.png $gp
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
862
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
863
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
864 $HELPSOURCE/vim.1 $MACROSOURCE $TOOLSSOURCE:
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
865 @if not os.path.exists(_no.TOOLSSOURCE):
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
866 :print Runtime files not found.
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
867 :error You need to unpack the runtime archive before running "make install".
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
868
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
869 # create links from various names to vim. This is only done when the links
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
870 # (or executables with the same name) don't exist yet.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
871 installlinks {virtual}: $GUI_TARGETS \
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
872 $DEST_BIN/$EXTARGET \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
873 $DEST_BIN/$VIEWTARGET \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
874 $DEST_BIN/$RVIMTARGET \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
875 $DEST_BIN/$RVIEWTARGET \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
876 $INSTALLVIMDIFF
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
877
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
878 installglinks {virtual}: $DEST_BIN/$GVIMTARGET \
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
879 $DEST_BIN/$GVIEWTARGET \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
880 $DEST_BIN/$RGVIMTARGET \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
881 $DEST_BIN/$RGVIEWTARGET \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
882 $DEST_BIN/$EVIMTARGET \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
883 $DEST_BIN/$EVIEWTARGET \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
884 $INSTALLGVIMDIFF
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
885
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
886 installvimdiff {virtual}: $DEST_BIN/$VIMDIFFTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
887 installgvimdiff {virtual}: $DEST_BIN/$GVIMDIFFTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
888
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
889 # These dependencies use an empty buildcheck so that they are only done when
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
890 # the target doesn't exist.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
891 $DEST_BIN/$EXTARGET: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
892 :sys cd $DEST_BIN; ln -s $VIMTARGET $EXTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
893
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
894 $DEST_BIN/$VIEWTARGET: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
895 :sys cd $DEST_BIN; ln -s $VIMTARGET $VIEWTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
896
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
897 $DEST_BIN/$GVIMTARGET: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
898 :sys cd $DEST_BIN; ln -s $VIMTARGET $GVIMTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
899
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
900 $DEST_BIN/$GVIEWTARGET: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
901 :sys cd $DEST_BIN; ln -s $VIMTARGET $GVIEWTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
902
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
903 $DEST_BIN/$RVIMTARGET: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
904 :sys cd $DEST_BIN; ln -s $VIMTARGET $RVIMTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
905
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
906 $DEST_BIN/$RVIEWTARGET: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
907 :sys cd $DEST_BIN; ln -s $VIMTARGET $RVIEWTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
908
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
909 $DEST_BIN/$RGVIMTARGET: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
910 :sys cd $DEST_BIN; ln -s $VIMTARGET $RGVIMTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
911
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
912 $DEST_BIN/$RGVIEWTARGET: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
913 :sys cd $DEST_BIN; ln -s $VIMTARGET $RGVIEWTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
914
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
915 $DEST_BIN/$VIMDIFFTARGET: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
916 :sys cd $DEST_BIN; ln -s $VIMTARGET $VIMDIFFTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
917
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
918 $DEST_BIN/$GVIMDIFFTARGET: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
919 :sys cd $DEST_BIN; ln -s $VIMTARGET $GVIMDIFFTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
920
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
921 $DEST_BIN/$EVIMTARGET: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
922 :sys cd $DEST_BIN; ln -s $VIMTARGET $EVIMTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
923
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
924 $DEST_BIN/$EVIEWTARGET: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
925 :sys cd $DEST_BIN; ln -s $VIMTARGET $EVIEWTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
926
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
927 # create links for the manual pages with various names to vim. This is only
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
928 # done when the links (or manpages with the same name) don't exist yet.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
929 installhelplinks {virtual}: $GUI_MAN_TARGETS \
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
930 $DEST_MAN/$(EXNAME).1 \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
931 $DEST_MAN/$(VIEWNAME).1 \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
932 $DEST_MAN/$(RVIMNAME).1 \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
933 $DEST_MAN/$(RVIEWNAME).1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
934
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
935 installghelplinks {virtual}: $DEST_MAN/$(GVIMNAME).1 \
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
936 $DEST_MAN/$(GVIEWNAME).1 \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
937 $DEST_MAN/$(RGVIMNAME).1 \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
938 $DEST_MAN/$(RGVIEWNAME).1 \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
939 $DEST_MAN/$(GVIMDIFFNAME).1 \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
940 $DEST_MAN/$(EVIEWNAME).1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
941
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
942 $DEST_MAN/$(EXNAME).1: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
943 :sys cd $DEST_MAN; ln -s $(VIMNAME).1 $(EXNAME).1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
944
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
945 $DEST_MAN/$(VIEWNAME).1: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
946 :sys cd $DEST_MAN; ln -s $(VIMNAME).1 $(VIEWNAME).1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
947
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
948 $DEST_MAN/$(GVIMNAME).1: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
949 :sys cd $DEST_MAN; ln -s $(VIMNAME).1 $(GVIMNAME).1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
950
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
951 $DEST_MAN/$(GVIEWNAME).1: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
952 :sys cd $DEST_MAN; ln -s $(VIMNAME).1 $(GVIEWNAME).1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
953
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
954 $DEST_MAN/$(RVIMNAME).1: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
955 :sys cd $DEST_MAN; ln -s $(VIMNAME).1 $(RVIMNAME).1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
956
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
957 $DEST_MAN/$(RVIEWNAME).1: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
958 :sys cd $DEST_MAN; ln -s $(VIMNAME).1 $(RVIEWNAME).1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
959
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
960 $DEST_MAN/$(RGVIMNAME).1: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
961 :sys cd $DEST_MAN; ln -s $(VIMNAME).1 $(RGVIMNAME).1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
962
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
963 $DEST_MAN/$(RGVIEWNAME).1: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
964 :sys cd $DEST_MAN; ln -s $(VIMNAME).1 $(RGVIEWNAME).1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
965
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
966 $DEST_MAN/$(GVIMDIFFNAME).1: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
967 :sys cd $DEST_MAN; ln -s $(VIMDIFFNAME).1 $(GVIMDIFFNAME).1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
968
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
969 $DEST_MAN/$(EVIEWNAME).1: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
970 :sys cd $DEST_MAN; ln -s $(EVIMNAME).1 $(EVIEWNAME).1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
971
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
972 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
973 # U N I N S T A L L
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
974 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
975 uninstall {virtual}{force}: uninstall_runtime
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
976 :del {force} $DEST_BIN/$VIMTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
977 :del {force} $DEST_MAN/$(VIMNAME).1 $DEST_MAN/$(VIMNAME)tutor.1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
978 :del {force} $DEST_BIN/vimtutor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
979 :del {force} $DEST_BIN/xxd$EXESUF $DEST_MAN/xxd.1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
980 :del {force} $DEST_BIN/$EXTARGET $DEST_BIN/$VIEWTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
981 :del {force} $DEST_BIN/$GVIMTARGET $DEST_BIN/$GVIEWTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
982 :del {force} $DEST_BIN/$RVIMTARGET $DEST_BIN/$RVIEWTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
983 :del {force} $DEST_BIN/$RGVIMTARGET $DEST_BIN/$RGVIEWTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
984 :del {force} $DEST_BIN/$VIMDIFFTARGET $DEST_BIN/$GVIMDIFFTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
985 :del {force} $DEST_BIN/$EVIMTARGET $DEST_BIN/$EVIEWTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
986 :del {force} $DEST_MAN/$(EXNAME).1 $DEST_MAN/$(VIEWNAME).1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
987 :del {force} $DEST_MAN/$(GVIMNAME).1 $DEST_MAN/$(GVIEWNAME).1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
988 :del {force} $DEST_MAN/$(RVIMNAME).1 $DEST_MAN/$(RVIEWNAME).1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
989 :del {force} $DEST_MAN/$(RGVIMNAME).1 $DEST_MAN/$(RGVIEWNAME).1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
990 :del {force} $DEST_MAN/$(VIMDIFFNAME).1 $DEST_MAN/$(GVIMDIFFNAME).1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
991 :del {force} $DEST_MAN/$(EVIMNAME).1 $DEST_MAN/$(EVIEWNAME).1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
992
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
993 # Note: "deldir" will fail if any files were added after "make install", that
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
994 # is intentionally: Keep files the user added.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
995 uninstall_runtime {virtual}{force}:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
996 :del {force} $DEST_HELP/*.txt $DEST_HELP/tags $DEST_HELP/*.pl
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
997 :del {force} $SYS_MENU_FILE $SYS_SYNMENU_FILE $SYS_DELMENU_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
998 :del {force} $SYS_BUGR_FILE $EVIM_FILE $MSWIN_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
999 :del {force} $DEST_SCRIPT/gvimrc_example.vim $DEST_SCRIPT/vimrc_example.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1000 :del {force} $SYS_FILETYPE_FILE $SYS_FTOFF_FILE $SYS_SCRIPTS_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1001 :del {force} $SYS_INDOFF_FILE $SYS_INDENT_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1002 :del {force} $SYS_FTPLUGOF_FILE $SYS_FTPLUGIN_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1003 :del {force} $SYS_OPTWIN_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1004 :del {force} $DEST_COL/*.vim $DEST_COL/README.txt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1005 :del {force} $DEST_SYN/*.vim $DEST_SYN/README.txt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1006 :del {force} $DEST_IND/*.vim $DEST_IND/README.txt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1007 :del {force} $DEST_PRINT/*.ps
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1008 :del {force}{recursive} $DEST_MACRO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1009 :del {force}{recursive} $DEST_TUTOR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1010 :del {force}{recursive} $DEST_TOOLS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1011 :del {force}{recursive} $DEST_LANG
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1012 :del {force}{recursive} $DEST_KMAP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1013 :del {force}{recursive} $DEST_COMP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1014 :deldir {force} $DEST_HELP $DEST_COL $DEST_SYN $DEST_IND
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1015 :del {force}{recursive} $DEST_FTP/*.vim $DEST_FTP/README.txt
446
7472c565592a updated for version 7.0117
vimboss
parents: 302
diff changeset
1016 :del {force} $DEST_AUTO/*.vim $DEST_AUTO/README.txt
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1017 :del {force} $DEST_PLUG/*.vim $DEST_PLUG/README.txt
446
7472c565592a updated for version 7.0117
vimboss
parents: 302
diff changeset
1018 :deldir {force} $DEST_FTP $DEST_AUTO $DEST_PLUG $DEST_PRINT $DEST_RT
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
1019 # This will fail when other Vim versions are installed, no worries.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1020 @try:
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
1021 :deldir $DEST_VIM
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1022 @except:
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
1023 :print Cannot delete $DEST_VIM
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1024
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1025
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1026 # vim: sts=4 sw=4 :