annotate src/main.aap @ 14227:38967af4302a

Added tag v8.1.0130 for changeset 706b57cd1b0059a5d669922edf3ee196cca22325
author Christian Brabandt <cb@256bit.org>
date Sat, 30 Jun 2018 18:30:07 +0200
parents 2055d3722c5b
children
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 #
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
13 @if os.name != "posix":
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
14 :error Sorry, this recipe only works for Unix-like systems.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 # Skip the configure stuff when "link.sh" is executing this recipe recursively
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 # to build pathdef.c or not building something and auto/config.aap does exist.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 @if ((_no.TARGETARG != "pathdef" and has_build_target())
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
19 @ or not os.path.exists("auto/config.aap")):
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 # A U T O C O N F
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
10375
2055d3722c5b commit https://github.com/vim/vim/commit/3f7d0907269558cb3ea184a3083640f9e20bb21e
Christian Brabandt <cb@256bit.org>
parents: 10226
diff changeset
25 # Run autoconf when configure.ac has been changed since it was last run.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 # This is skipped when the signatures in "mysign" are up-to-date. When
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 # there is no autoconf program skip this (the signature is often the only
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 # thing that's outdated)
10375
2055d3722c5b commit https://github.com/vim/vim/commit/3f7d0907269558cb3ea184a3083640f9e20bb21e
Christian Brabandt <cb@256bit.org>
parents: 10226
diff changeset
29 auto/configure {signfile = mysign} : configure.ac
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
30 @if not program_path("autoconf"):
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
31 :print Can't find autoconf, using existing configure script.
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
32 @else:
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 # Move configure aside, autoconf would overwrite it
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 :move {exist} configure configure.save
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 :sys autoconf
663
0701ca4c8ceb updated for version 7.0196
vimboss
parents: 573
diff changeset
36 :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
37 :chmod 755 auto/configure
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 :move configure.save configure
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 :del {force} auto/config.cache auto/config.status
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 # Change the configure script to produce config.aap instead of config.mk.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 auto/configure.aap : auto/configure
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
43 :print Adjusting auto/configure for A-A-P.
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
44 :cat auto/configure | :eval re.sub("config.mk", "config.aap", stdin)
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
45 >! auto/configure.aap
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
46 :chmod 755 auto/configure.aap
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 # The configure script uses the directory where it's located, use a link.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 configure.aap: {buildcheck=}
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
50 :symlink {f} auto/configure.aap configure.aap
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 # Dependency: run configure.aap to update config.h and config.aap in the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 # "auto" directory.
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
54 # NOTE: we can only build for one architecture, because -MM doesn't work
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
55 # when building for both.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 config {virtual} auto/config.h auto/config.aap :
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
57 auto/configure.aap configure.aap
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
58 config.arg config.h.in config.aap.in
1407
26b0b2f606d2 updated for version 7.1-122
vimboss
parents: 1188
diff changeset
59 # Use "uname -a" to detect the architecture of the system.
26b0b2f606d2 updated for version 7.1-122
vimboss
parents: 1188
diff changeset
60 @ok, uname = redir_system('uname -a', 0)
26b0b2f606d2 updated for version 7.1-122
vimboss
parents: 1188
diff changeset
61 @if string.find(uname, "i386") >= 0:
26b0b2f606d2 updated for version 7.1-122
vimboss
parents: 1188
diff changeset
62 @ arch = "i386"
26b0b2f606d2 updated for version 7.1-122
vimboss
parents: 1188
diff changeset
63 @else:
26b0b2f606d2 updated for version 7.1-122
vimboss
parents: 1188
diff changeset
64 @ arch = "ppc"
26b0b2f606d2 updated for version 7.1-122
vimboss
parents: 1188
diff changeset
65 :print Building for $arch system
1461
76406c9cbbaa updated for version 7.1-176
vimboss
parents: 1407
diff changeset
66 config_args = `file2string("config.arg")`
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
67 :sys CONFIG_STATUS=auto/config.status
1461
76406c9cbbaa updated for version 7.1-176
vimboss
parents: 1407
diff changeset
68 ./configure.aap $config_args
1407
26b0b2f606d2 updated for version 7.1-122
vimboss
parents: 1188
diff changeset
69 --with-mac-arch=$arch
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 --cache-file=auto/config.cache
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71
10226
7a4fb555c83a commit https://github.com/vim/vim/commit/9af418427652562384744648d7d173a4bfebba95
Christian Brabandt <cb@256bit.org>
parents: 9228
diff changeset
72 # Configure arguments: create an empty "config.arg" file when it's missing
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 config.arg:
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
74 :touch {exist} config.arg
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 # "auto/config.aap" contains a lot of settings, such as the name of the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 # executable "Target".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 # First update it, forcefully if the "reconfig" target was used.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 @if _no.TARGETARG != "comment" and _no.TARGETARG != "make":
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
80 @if "reconfig" in var2list(_no.TARGETARG):
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
81 :del {force} auto/config.cache auto/config.status
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
82 :update {force} auto/config.aap
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
83 @else:
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
84 :update auto/config.aap
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 # Include the recipe that autoconf generated.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 :include auto/config.aap
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88
690
0e922220d322 updated for version 7.0208
vimboss
parents: 663
diff changeset
89 # Unfortunately "-M" doesn't work when building for two architectures. Switch
0e922220d322 updated for version 7.0208
vimboss
parents: 663
diff changeset
90 # back to PPC only.
0e922220d322 updated for version 7.0208
vimboss
parents: 663
diff changeset
91 @if string.find(_no.CPPFLAGS, "-arch i386 -arch ppc") >= 0:
0e922220d322 updated for version 7.0208
vimboss
parents: 663
diff changeset
92 CPPFLAGS = `string.replace(_no.CPPFLAGS, "-arch i386 -arch ppc", "-arch ppc")`
0e922220d322 updated for version 7.0208
vimboss
parents: 663
diff changeset
93
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 # A "PREFIX=dir" argument overrules the value of $prefix
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
95 # But don't use the default "/usr/local".
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
96 @if _no.get("PREFIX") and _no.get("PREFIX") != '/usr/local':
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 prefix = $PREFIX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 # Don't want "~/" in prefix.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 prefix = `os.path.expanduser(prefix)`
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
102 # For Mac.
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
103 APPDIR = $(VIMNAME).app
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
104
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
105 ### Names of the programs and targets
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
106 VIMTARGET = $VIMNAME$EXESUF
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
107 EXTARGET = $EXNAME$LNKSUF
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
108 VIEWTARGET = $VIEWNAME$LNKSUF
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
109 GVIMNAME = g$VIMNAME
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
110 GVIMTARGET = $GVIMNAME$LNKSUF
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
111 GVIEWNAME = g$VIEWNAME
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
112 GVIEWTARGET = $GVIEWNAME$LNKSUF
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
113 RVIMNAME = r$VIMNAME
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
114 RVIMTARGET = $RVIMNAME$LNKSUF
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
115 RVIEWNAME = r$VIEWNAME
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
116 RVIEWTARGET = $RVIEWNAME$LNKSUF
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
117 RGVIMNAME = r$GVIMNAME
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
118 RGVIMTARGET = $RGVIMNAME$LNKSUF
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
119 RGVIEWNAME = r$GVIEWNAME
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
120 RGVIEWTARGET = $RGVIEWNAME$LNKSUF
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
121 VIMDIFFNAME = $(VIMNAME)diff
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
122 GVIMDIFFNAME = g$VIMDIFFNAME
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
123 VIMDIFFTARGET = $VIMDIFFNAME$LNKSUF
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
124 GVIMDIFFTARGET = $GVIMDIFFNAME$LNKSUF
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
125 EVIMNAME = e$VIMNAME
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
126 EVIMTARGET = $EVIMNAME$LNKSUF
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
127 EVIEWNAME = e$VIEWNAME
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
128 EVIEWTARGET = $EVIEWNAME$LNKSUF
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
129
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 # G U I variant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 # The GUI is selected by configure, a lot of other things depend on it.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 :variant GUI
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 GTK
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
137 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
138 gui_gtk_f.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
139 GUI_OBJ =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
140 GUI_DEFS = -DFEAT_GUI_GTK $NARROW_PROTO
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
141 GUI_IPATH = $GUI_INC_LOC
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
142 GUI_LIBS_DIR = $GUI_LIB_LOC
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
143 GUI_LIBS1 =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
144 GUI_LIBS2 = $GTK_LIBNAME
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
145 GUI_INSTALL = install_normal
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
146 GUI_TARGETS = installglinks
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
147 GUI_MAN_TARGETS = yes
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
148 GUI_TESTTARGET = gui
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
149 GUI_BUNDLE =
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
150 GUI_TESTARG =
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 MOTIF
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
152 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
153 gui_xmdlg.c gui_xmebw.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
154 GUI_OBJ =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
155 GUI_DEFS = -DFEAT_GUI_MOTIF $NARROW_PROTO
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
156 GUI_IPATH = $GUI_INC_LOC
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
157 GUI_LIBS_DIR = $GUI_LIB_LOC
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
158 GUI_LIBS1 =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
159 GUI_LIBS2 = $MOTIF_LIBNAME -lXt
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
160 GUI_INSTALL = install_normal
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
161 GUI_TARGETS = installglinks
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
162 GUI_MAN_TARGETS = yes
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
163 GUI_TESTTARGET = gui
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
164 GUI_BUNDLE =
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
165 GUI_TESTARG =
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 ATHENA
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
167 # XAW_LIB et al. can be overruled to use Xaw3d widgets
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
168 XAW_LIB ?= -lXaw
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
169 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
170 gui_at_sb.c gui_at_fs.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
171 GUI_OBJ =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
172 GUI_DEFS = -DFEAT_GUI_ATHENA $NARROW_PROTO
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
173 GUI_IPATH = $GUI_INC_LOC
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
174 GUI_LIBS_DIR = $GUI_LIB_LOC
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
175 GUI_LIBS1 = $XAW_LIB
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
176 GUI_LIBS2 = -lXt
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
177 GUI_INSTALL = install_normal
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
178 GUI_TARGETS = installglinks
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
179 GUI_MAN_TARGETS = yes
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
180 GUI_TESTTARGET = gui
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
181 GUI_BUNDLE =
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
182 GUI_TESTARG =
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 NEXTAW
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
184 # XAW_LIB et al. can be overruled to use Xaw3d widgets
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
185 XAW_LIB ?= -lXaw
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
186 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
187 gui_at_fs.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
188 GUI_OBJ =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
189 GUI_DEFS = -DFEAT_GUI_ATHENA -DFEAT_GUI_NEXTAW $NARROW_PROTO
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
190 GUI_IPATH = $GUI_INC_LOC
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
191 GUI_LIBS_DIR = $GUI_LIB_LOC
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
192 GUI_LIBS1 = $NEXTAW_LIB
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
193 GUI_LIBS2 = -lXt
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
194 GUI_INSTALL = install_normal
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
195 GUI_TARGETS = installglinks
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
196 GUI_MAN_TARGETS = yes
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
197 GUI_TESTTARGET = gui
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
198 GUI_BUNDLE =
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
199 GUI_TESTARG =
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
200 CARBONGUI
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
201 GUI_SRC = gui.c gui_mac.c pty.c
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
202 GUI_OBJ =
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
203 GUI_DEFS = -DFEAT_GUI_MAC -fno-common -fpascal-strings \
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
204 -Wall -Wno-unknown-pragmas -mdynamic-no-pic -pipe
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
205 GUI_IPATH = $GUI_INC_LOC
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
206 GUI_LIBS_DIR = $GUI_LIB_LOC
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
207 GUI_LIBS1 = -framework Carbon
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
208 GUI_LIBS2 =
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
209 GUI_INSTALL = install_macosx
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
210 GUI_TARGETS = installglinks
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
211 GUI_MAN_TARGETS = yes
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
212 GUI_TESTTARGET = gui
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
213 GUI_BUNDLE = gui_bundle
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
214 GUI_TESTARG = VIMPROG=../$(APPDIR)/Contents/MacOS/$(VIMTARGET)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215 PHOTONGUI
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
216 GUI_SRC = gui.c gui_photon.c pty.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
217 GUI_OBJ =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
218 GUI_DEFS = -DFEAT_GUI_PHOTON
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
219 GUI_IPATH =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
220 GUI_LIBS_DIR =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
221 GUI_LIBS1 = -lph -lphexlib
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
222 GUI_LIBS2 =
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
223 GUI_INSTALL = install_normal
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
224 GUI_TARGETS = installglinks
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
225 GUI_MAN_TARGETS = yes
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
226 GUI_TESTTARGET = gui
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
227 GUI_BUNDLE =
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
228 GUI_TESTARG =
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 *
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
230 GUI_SRC =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
231 GUI_OBJ =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
232 GUI_DEFS =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
233 GUI_IPATH =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
234 GUI_LIBS_DIR =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
235 GUI_LIBS1 =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
236 GUI_LIBS2 =
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
237 GUI_INSTALL = install_normal
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
238 GUI_TARGETS =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
239 GUI_MAN_TARGETS =
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
240 GUI_TESTTARGET =
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
241 GUI_BUNDLE =
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
242 GUI_TESTARG =
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
243
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245 PRE_DEFS = -Iproto -I. $DEFS $GUI_DEFS $GUI_IPATH $CPPFLAGS $?(EXTRA_IPATHS)
2320
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2200
diff changeset
246 POST_DEFS = $X_CFLAGS $LUA_CFLAGS $MZSCHEME_CFLAGS $PERL_CFLAGS $PYTHON_CFLAGS $TCL_CFLAGS $RUBY_CFLAGS $?(EXTRA_DEFS)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247 CFLAGS = $PRE_DEFS $CONF_CFLAGS $?(PROFILE_CFLAGS) $POST_DEFS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248 CPPFLAGS =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250 ALL_LIB_DIRS = $GUI_LIBS_DIR $X_LIBS_DIR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
251 LDFLAGS = $ALL_LIB_DIRS $CONF_LDFLAGS
2320
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2200
diff changeset
252 LIBS = $GUI_LIBS1 $GUI_X_LIBS $GUI_LIBS2 $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS $CONF_LIBS $?(EXTRA_LIBS) $LUA_LIBS $MZSCHEME_LIBS $PERL_LIBS $PYTHON_LIBS $TCL_LIBS $RUBY_LIBS $?(PROFILE_LIBS)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254 Target = $VIMNAME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256 # reconfig target also builds Vim (reconfiguration is handled above).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
257 reconfig {virtual}: $Target
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
259 distclean: clean
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
260 :del {force} auto/config.h auto/config.aap
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
261 :del {force} auto/config.cache auto/config.status
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
262
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
263
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
264 # Execute the test scripts. Run these after compiling Vim, before installing.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
266 # This will produce a lot of garbage on your screen, including a few error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
267 # messages. Don't worry about that.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
268 # 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
269 # a "test99.ok" file.
2154
7c8c7c95a865 First step in the Vim 7.3 branch. Changed version numbers.
Bram Moolenaar <bram@zimbu.org>
parents: 1461
diff changeset
270 # If everything is alright, the final message will be "ALL DONE". If not you
7c8c7c95a865 First step in the Vim 7.3 branch. Changed version numbers.
Bram Moolenaar <bram@zimbu.org>
parents: 1461
diff changeset
271 # get "TEST FAILURE".
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
272 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273 test check:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
274 VimProg = ../$Target
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
275 :execute testdir/main.aap $GUI_TESTTARGET $GUI_TESTARG
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
276
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
277 testclean {virtual}:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
278 :del {force} testdir/*.out testdir/test.log
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
279
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
280 # 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
281 # Use ../main.aap to do the fetching.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
282 # --- If you get an error here for wrong number of arguments, you need to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
283 # update to a newer version of A-A-P.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
284 @if not has_target("fetch"):
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
285 fetch:
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
286 :execute ../main.aap fetch
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
287
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
288
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
289 # All the source files that need to be compiled.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
290 # Some are optional and depend on configure.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
291 # "version.c" is missing, it's always compiled (see below).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
292 Source =
2200
99ba9a30755a Various smaller changes. Updated proto files. Updated dependencies.
Bram Moolenaar <bram@vim.org>
parents: 2154
diff changeset
293 blowfish.c
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
294 buffer.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
295 charset.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
296 diff.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
297 digraph.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
298 edit.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
299 eval.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
300 ex_cmds.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
301 ex_cmds2.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
302 ex_docmd.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
303 ex_eval.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
304 ex_getln.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
305 fileio.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
306 fold.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
307 getchar.c
446
7472c565592a updated for version 7.0117
vimboss
parents: 302
diff changeset
308 hardcopy.c
815
c68b7b2b9e07 updated for version 7.0c02
vimboss
parents: 809
diff changeset
309 hashtab.c
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
310 if_cscope.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
311 if_xcmdsrv.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
312 main.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
313 mark.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
314 memfile.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
315 memline.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
316 menu.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
317 message.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
318 misc1.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
319 misc2.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
320 move.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
321 mbyte.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
322 normal.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
323 ops.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
324 option.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
325 os_unix.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
326 auto/pathdef.c
815
c68b7b2b9e07 updated for version 7.0c02
vimboss
parents: 809
diff changeset
327 popupmnu.c
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
328 quickfix.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
329 regexp.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
330 screen.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
331 search.c
2200
99ba9a30755a Various smaller changes. Updated proto files. Updated dependencies.
Bram Moolenaar <bram@vim.org>
parents: 2154
diff changeset
332 sha256.c
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
333 spell.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
334 syntax.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
335 tag.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
336 term.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
337 ui.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
338 undo.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
339 window.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
340 $OS_EXTRA_SRC
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
341 $GUI_SRC
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
342 $HANGULIN_SRC
2320
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2200
diff changeset
343 $LUA_SRC
16
3ba373b54370 updated for version 7.0008
vimboss
parents: 7
diff changeset
344 $MZSCHEME_SRC
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
345 $PERL_SRC
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
346 $NETBEANS_SRC
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
347 $PYTHON_SRC
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
348 $TCL_SRC
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
349 $RUBY_SRC
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
350 $WORKSHOP_SRC
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
351
16
3ba373b54370 updated for version 7.0008
vimboss
parents: 7
diff changeset
352 Objects =
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
353 $GUI_OBJ
16
3ba373b54370 updated for version 7.0008
vimboss
parents: 7
diff changeset
354
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
355 # TODO: make is still used for subdirectories, need to write a recipe.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
356 MAKE ?= make
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
357
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
358 all: $Target $GUI_BUNDLE
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
359
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
360 # This dependency is required to build auto/osdef.h before automatic
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
361 # dependencies are generated.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
362 $Source version.c : auto/osdef.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
363
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
364 # Need to mention that the target also depends on version.c, since it's not
1188
2a276274c592 updated for version 7.1b
vimboss
parents: 1120
diff changeset
365 # included in $Source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
366 $Target : version.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
367
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
368 # Some sources are to be found in the "auto" directory.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
369 SRCPATH += auto
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
370
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
371 # When building Vim always compile version.c to get the timestamp.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
372 :filetype
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
373 declare my_prog
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
374 :attr {filetype = my_prog} $Target
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
375
16
3ba373b54370 updated for version 7.0008
vimboss
parents: 7
diff changeset
376 :program $Target : $Source $Objects
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
377
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
378 :action build my_prog object
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
379 version_obj = `src2obj("version.c")`
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
380 :do compile {target = $version_obj} version.c
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
381 #:do build {target = $target {filetype = program}} $source $version_obj
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
382 link_sed = $BDIR/link.sed
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
383 @if os.path.exists(link_sed):
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
384 :move {force} $link_sed auto/link.sed
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
385 @else:
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
386 :del {force} auto/link.sed
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
387 :update link2.sh
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
388 :sys LINK="$?(PURIFY) $?(SHRPENV) $CC $LDFLAGS \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
389 -o $target $source $version_obj $LIBS" \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
390 MAKE="aap" sh ./link2.sh
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
391 :copy {force} auto/link.sed $BDIR/link.sed
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
392
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
393 # "link.sh" must be modified for A-A-P
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
394 link2.sh : link.sh
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
395 :print Adjusting $-source for A-A-P.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
396 :cat $source | :eval re.sub("objects/pathdef.o", "pathdef", stdin)
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
397 >! $target
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
398
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
399 xxd/xxd$EXESUF: xxd/xxd.c
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
400 :sys cd xxd; CC="$CC" CFLAGS="$CPPFLAGS $CFLAGS" \
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
401 $MAKE -f Makefile
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
402
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
403 # Build the language specific files if they were unpacked.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
404 # Generate the converted .mo files separately, it's no problem if this fails.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
405 languages {virtual}:
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
406 @if _no.MAKEMO:
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
407 :sys cd $PODIR; CC="$CC" $MAKE prefix=$DESTDIR$prefix
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
408 @try:
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
409 :sys cd $PODIR; CC="$CC" $MAKE prefix=$DESTDIR$prefix converted
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
410 @except:
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
411 :print Generated converted language files failed, continuing
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
412
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
413 # Update the *.po files for changes in the sources. Only run manually.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
414 update-po {virtual}:
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
415 cd $PODIR; CC="$CC" $MAKE prefix=$DESTDIR$prefix update-po
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
416
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
417 auto/if_perl.c: if_perl.xs
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
418 :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
419 :sys $PERL $PERLLIB/ExtUtils/xsubpp -prototypes -typemap \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
420 $PERLLIB/ExtUtils/typemap if_perl.xs >> $target
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
421
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
422 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
423 :sys CC="$CC $CFLAGS" srcdir=$srcdir sh $srcdir/osdef.sh
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
424
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
425 pathdef {virtual} : $BDIR/auto/pathdef$OBJSUF
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
426
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
427 auto/pathdef.c: auto/config.aap
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
428 :print Creating $target
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
429 :print >! $target /* pathdef.c */
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
430 :print >> $target /* This file is automatically created by main.aap */
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
431 :print >> $target /* DO NOT EDIT! Change main.aap only. */
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
432 :print >> $target $#include "vim.h"
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
433 :print >> $target char_u *default_vim_dir = (char_u *)"$VIMRCLOC";
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
434 :print >> $target char_u *default_vimruntime_dir = (char_u *)"$?VIMRUNTIMEDIR";
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
435 v = $CC -c -I$srcdir $CFLAGS
16
3ba373b54370 updated for version 7.0008
vimboss
parents: 7
diff changeset
436 @v = string.replace(v, '"', '\\"')
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
437 :print >> $target char_u *all_cflags = (char_u *)"$v";
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
438 linkcmd = $CC $LDFLAGS -o $VIMTARGET $LIBS
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
439 link_sed = $BDIR/link.sed
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
440 @if os.path.exists(link_sed):
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
441 # filter $linkcmd through $BDIR/link.sed
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
442 :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
443 @linkcmd = string.replace(linkcmd, '"', '\\"')
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
444 :print >> $target char_u *all_lflags = (char_u *)"$linkcmd";
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
445 @if _no.get("COMPILEDBY"):
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
446 who = $COMPILEDBY
1461
76406c9cbbaa updated for version 7.1-176
vimboss
parents: 1407
diff changeset
447 where =
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
448 @else:
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
449 :syseval whoami | :eval re.sub("\n", "", stdin) | :assign who
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
450
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
451 :syseval hostname | :eval re.sub("\n", "", stdin) | :assign where
1461
76406c9cbbaa updated for version 7.1-176
vimboss
parents: 1407
diff changeset
452 @who = string.replace(who, '"', '\\"')
76406c9cbbaa updated for version 7.1-176
vimboss
parents: 1407
diff changeset
453 @where = string.replace(where, '"', '\\"')
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
454 :print >> $target char_u *compiled_user = (char_u *)"$who";
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
455 :print >> $target char_u *compiled_sys = (char_u *)"$where";
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
456
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
457
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
458 ### Names of the tools that are also made
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
459 TOOLS = xxd/xxd$EXESUF
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
460
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
461 # Root of the installation tree. Empty for a normal install, set to an
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
462 # existing path to install into a special place (for generating a package).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
463 DESTDIR ?=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
464
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
465 ### Location of man pages under $MANTOPDIR
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
466 MAN1DIR = /man1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
467
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
468 ### Location of Vim files (should not need to be changed, and
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
469 ### some things might not work when they are changed!)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
470 VIMDIR = /vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
471 @r = re.compile('.*VIM_VERSION_NODOT\\s*"(vim\\d\\d[^"]*)".*', re.S)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
472 VIMRTDIR = /`r.match(open("version.h").read()).group(1)`
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
473 HELPSUBDIR = /doc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
474 COLSUBDIR = /colors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
475 SYNSUBDIR = /syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
476 INDSUBDIR = /indent
446
7472c565592a updated for version 7.0117
vimboss
parents: 302
diff changeset
477 AUTOSUBDIR = /autoload
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
478 PLUGSUBDIR = /plugin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
479 FTPLUGSUBDIR = /ftplugin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
480 LANGSUBDIR = /lang
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
481 COMPSUBDIR = /compiler
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
482 KMAPSUBDIR = /keymap
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
483 MACROSUBDIR = /macros
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
484 TOOLSSUBDIR = /tools
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
485 TUTORSUBDIR = /tutor
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
486 SPELLSUBDIR = /spell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
487 PRINTSUBDIR = /print
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
488 PODIR = po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
489
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
490 ### VIMLOC common root of the Vim files (all versions)
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
491 ### VIMRTLOC common root of the runtime Vim files (this version)
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
492 ### VIMRCLOC compiled-in location for global [g]vimrc files (all versions)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
493 ### VIMRUNTIMEDIR compiled-in location for runtime files (optional)
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
494 ### HELPSUBLOC location for help files
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
495 ### COLSUBLOC location for colorscheme files
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
496 ### SYNSUBLOC location for syntax files
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
497 ### INDSUBLOC location for indent files
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
498 ### AUTOSUBLOC location for standard autoload files
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
499 ### PLUGSUBLOC location for standard plugin files
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
500 ### FTPLUGSUBLOC location for ftplugin files
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
501 ### LANGSUBLOC location for language files
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
502 ### COMPSUBLOC location for compiler files
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
503 ### KMAPSUBLOC location for keymap files
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
504 ### MACROSUBLOC location for macro files
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
505 ### TOOLSSUBLOC location for tools files
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
506 ### TUTORSUBLOC location for tutor files
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
507 ### PRINTSUBLOC location for print files
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
508 ### SCRIPTLOC location for script files (menu.vim, bugreport.vim, ..)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
509 ### You can override these if you want to install them somewhere else.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
510 ### Edit feature.h for compile-time settings.
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
511 VIMLOC = $DATADIR$VIMDIR
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
512 @if not _no.get("VIMRTLOC"):
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
513 VIMRTLOC = $DATADIR$VIMDIR$VIMRTDIR
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
514 VIMRCLOC = $VIMLOC
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
515 HELPSUBLOC = $VIMRTLOC$HELPSUBDIR
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
516 COLSUBLOC = $VIMRTLOC$COLSUBDIR
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
517 SYNSUBLOC = $VIMRTLOC$SYNSUBDIR
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
518 INDSUBLOC = $VIMRTLOC$INDSUBDIR
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
519 AUTOSUBLOC = $VIMRTLOC$AUTOSUBDIR
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
520 PLUGSUBLOC = $VIMRTLOC$PLUGSUBDIR
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
521 FTPLUGSUBLOC = $VIMRTLOC$FTPLUGSUBDIR
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
522 LANGSUBLOC = $VIMRTLOC$LANGSUBDIR
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
523 COMPSUBLOC = $VIMRTLOC$COMPSUBDIR
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
524 KMAPSUBLOC = $VIMRTLOC$KMAPSUBDIR
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
525 MACROSUBLOC = $VIMRTLOC$MACROSUBDIR
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
526 TOOLSSUBLOC = $VIMRTLOC$TOOLSSUBDIR
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
527 TUTORSUBLOC = $VIMRTLOC$TUTORSUBDIR
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
528 SPELLSUBLOC = $VIMRTLOC$SPELLSUBDIR
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
529 PRINTSUBLOC = $VIMRTLOC$PRINTSUBDIR
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
530 SCRIPTLOC = $VIMRTLOC
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
531
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
532 ### Only set VIMRUNTIMEDIR when VIMRTLOC is set to a different location and
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
533 ### the runtime directory is not below it.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
534 #VIMRUNTIMEDIR = $VIMRTLOC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
535
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
536 ### Name of the evim file target.
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
537 EVIM_FILE = $DESTDIR$SCRIPTLOC/evim.vim
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
538 MSWIN_FILE = $DESTDIR$SCRIPTLOC/mswin.vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
539
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
540 ### Name of the menu file target.
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
541 SYS_MENU_FILE = $DESTDIR$SCRIPTLOC/menu.vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
542 SYS_SYNMENU_FILE = $DESTDIR$SCRIPTLOC/synmenu.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
543 SYS_DELMENU_FILE = $DESTDIR$SCRIPTLOC/delmenu.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
544
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
545 ### Name of the bugreport file target.
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
546 SYS_BUGR_FILE = $DESTDIR$SCRIPTLOC/bugreport.vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
547
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
548 ### Name of the file type detection file target.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
549 SYS_FILETYPE_FILE = $DESTDIR$SCRIPTLOC/filetype.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
550
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
551 ### Name of the file type detection file target.
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
552 SYS_FTOFF_FILE = $DESTDIR$SCRIPTLOC/ftoff.vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
553
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
554 ### Name of the file type detection script file target.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
555 SYS_SCRIPTS_FILE = $DESTDIR$SCRIPTLOC/scripts.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
556
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
557 ### Name of the ftplugin-on file target.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
558 SYS_FTPLUGIN_FILE = $DESTDIR$SCRIPTLOC/ftplugin.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
559
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
560 ### Name of the ftplugin-off file target.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
561 SYS_FTPLUGOF_FILE = $DESTDIR$SCRIPTLOC/ftplugof.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
562
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
563 ### Name of the indent-on file target.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
564 SYS_INDENT_FILE = $DESTDIR$SCRIPTLOC/indent.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
565
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
566 ### Name of the indent-off file target.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
567 SYS_INDOFF_FILE = $DESTDIR$SCRIPTLOC/indoff.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
568
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
569 ### Name of the option window script file target.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
570 SYS_OPTWIN_FILE = $DESTDIR$SCRIPTLOC/optwin.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
571
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
572 ### Permissions for binaries
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
573 BINMOD = 755
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
574
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
575 ### Permissions for man page
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
576 MANMOD = 644
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
577
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
578 ### Permissions for help files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
579 HELPMOD = 644
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
580
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
581 ### Permissions for Perl and shell scripts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
582 SCRIPTMOD = 755
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
583
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
584 ### Permission for Vim script files (menu.vim, bugreport.vim, ..)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
585 VIMSCRIPTMOD = 644
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
586
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
587 ### Permissions for all directories that are created
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
588 DIRMOD = 755
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
589
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
590 ### Permissions for all other files that are created
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
591 FILEMOD = 644
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
592
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
593 # Where to copy the man and help files from
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
594 HELPSOURCE = ../runtime/doc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
595
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
596 # Where to copy the script files from (menu, bugreport)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
597 SCRIPTSOURCE = ../runtime
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
598
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
599 # Where to copy the colorscheme files from
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
600 COLSOURCE = ../runtime/colors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
601
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
602 # Where to copy the syntax files from
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
603 SYNSOURCE = ../runtime/syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
604
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
605 # Where to copy the indent files from
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
606 INDSOURCE = ../runtime/indent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
607
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
608 # Where to copy the standard plugin files from
446
7472c565592a updated for version 7.0117
vimboss
parents: 302
diff changeset
609 AUTOSOURCE = ../runtime/autoload
7472c565592a updated for version 7.0117
vimboss
parents: 302
diff changeset
610
7472c565592a updated for version 7.0117
vimboss
parents: 302
diff changeset
611 # Where to copy the standard plugin files from
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
612 PLUGSOURCE = ../runtime/plugin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
613
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
614 # Where to copy the ftplugin files from
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
615 FTPLUGSOURCE = ../runtime/ftplugin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
616
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
617 # Where to copy the macro files from
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
618 MACROSOURCE = ../runtime/macros
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
619
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
620 # Where to copy the tools files from
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
621 TOOLSSOURCE = ../runtime/tools
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
622
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
623 # Where to copy the tutor files from
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
624 TUTORSOURCE = ../runtime/tutor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
625
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
626 # Where to copy the spell files from
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
627 SPELLSOURCE = ../runtime/spell
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
628
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
629 # Where to look for language specific files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
630 LANGSOURCE = ../runtime/lang
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
631
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
632 # Where to look for compiler files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
633 COMPSOURCE = ../runtime/compiler
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
634
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
635 # Where to look for keymap files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
636 KMAPSOURCE = ../runtime/keymap
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
637
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
638 # Where to look for print resource files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
639 PRINTSOURCE = ../runtime/print
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
640
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
641 # abbreviations
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
642 DEST_BIN = $DESTDIR$BINDIR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
643 DEST_VIM = $DESTDIR$VIMLOC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
644 DEST_RT = $DESTDIR$VIMRTLOC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
645 DEST_HELP = $DESTDIR$HELPSUBLOC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
646 DEST_COL = $DESTDIR$COLSUBLOC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
647 DEST_SYN = $DESTDIR$SYNSUBLOC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
648 DEST_IND = $DESTDIR$INDSUBLOC
446
7472c565592a updated for version 7.0117
vimboss
parents: 302
diff changeset
649 DEST_AUTO = $DESTDIR$AUTOSUBLOC
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
650 DEST_PLUG = $DESTDIR$PLUGSUBLOC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
651 DEST_FTP = $DESTDIR$FTPLUGSUBLOC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
652 DEST_LANG = $DESTDIR$LANGSUBLOC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
653 DEST_COMP = $DESTDIR$COMPSUBLOC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
654 DEST_KMAP = $DESTDIR$KMAPSUBLOC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
655 DEST_MACRO = $DESTDIR$MACROSUBLOC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
656 DEST_TOOLS = $DESTDIR$TOOLSSUBLOC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
657 DEST_TUTOR = $DESTDIR$TUTORSUBLOC
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
658 DEST_SPELL = $DESTDIR$SPELLSUBLOC
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
659 DEST_SCRIPT = $DESTDIR$SCRIPTLOC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
660 DEST_PRINT = $DESTDIR$PRINTSUBLOC
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
661 DEST_MAN_TOP = $DESTDIR$?(MANDIR)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
662
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
663 # We assume that the ".../man/xx/man1/" directory is for latin1 manual pages.
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
664 # Some systems use UTF-8, but these should find the ".../man/xx.UTF-8/man1/"
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
665 # directory first.
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
666 # FreeBSD uses ".../man/xx.ISO8859-1/man1" for latin1, use that one too.
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
667 DEST_MAN = $(DEST_MAN_TOP)$(MAN1DIR)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
668 DEST_MAN_FR = $(DEST_MAN_TOP)/fr$(MAN1DIR)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
669 DEST_MAN_FR_I = $(DEST_MAN_TOP)/fr.ISO8859-1$(MAN1DIR)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
670 DEST_MAN_FR_U = $(DEST_MAN_TOP)/fr.UTF-8$(MAN1DIR)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
671 DEST_MAN_IT = $(DEST_MAN_TOP)/it$(MAN1DIR)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
672 DEST_MAN_IT_I = $(DEST_MAN_TOP)/it.ISO8859-1$(MAN1DIR)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
673 DEST_MAN_IT_U = $(DEST_MAN_TOP)/it.UTF-8$(MAN1DIR)
809
4f1b94b51e99 updated for version 7.0b02
vimboss
parents: 796
diff changeset
674 DEST_MAN_PL = $(DEST_MAN_TOP)/pl.ISO8859-2$(MAN1DIR)
4f1b94b51e99 updated for version 7.0b02
vimboss
parents: 796
diff changeset
675 DEST_MAN_PL_U = $(DEST_MAN_TOP)/pl.UTF-8$(MAN1DIR)
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
676 DEST_MAN_RU = $(DEST_MAN_TOP)/ru.KOI8-R$(MAN1DIR)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
677 DEST_MAN_RU_U = $(DEST_MAN_TOP)/ru.UTF-8$(MAN1DIR)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
678
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
679 # These are directories, create them when needed.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
680 :attr {directory = $DIRMOD} $DEST_BIN $DEST_VIM $DEST_RT $DEST_HELP $DEST_COL
827
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 819
diff changeset
681 $DEST_SYN $DEST_IND $DEST_AUTO $DEST_AUTO/xml $DEST_PLUG
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 819
diff changeset
682 $DEST_FTP $DEST_LANG
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
683 $DEST_COMP $DEST_KMAP $DEST_MACRO $DEST_TOOLS $DEST_TUTOR
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
684 $DEST_SCRIPT $DEST_PRINT $DEST_MAN $DEST_SPELL
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
685 $DEST_MAN_FR $DEST_MAN_FR_I $DEST_MAN_FR_U $DEST_MAN_IT
809
4f1b94b51e99 updated for version 7.0b02
vimboss
parents: 796
diff changeset
686 $DEST_MAN_IT_I $DEST_MAN_IT_U
4f1b94b51e99 updated for version 7.0b02
vimboss
parents: 796
diff changeset
687 $DEST_MAN_PL $DEST_MAN_PL_U
4f1b94b51e99 updated for version 7.0b02
vimboss
parents: 796
diff changeset
688 $DEST_MAN_RU $DEST_MAN_RU_U
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
689
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
690 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
691 # I N S T A L L
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
692 #
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
693 install: $GUI_INSTALL
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
694
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
695 install_normal:
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
696 @if not os.path.isdir(_no.DEST_BIN):
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
697 @try:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
698 :mkdir $DEST_BIN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
699 @except:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
700 @ pass
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
701 @if os.access(_no.DEST_BIN, os.W_OK):
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
702 # Bin directory is writable, install directly.
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
703 :update installvim installtools $INSTALL_LANGS install-icons
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
704 @else:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
705 # Bin directory is not writable, need to become root.
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
706 :print The destination directory "$DEST_BIN" is not writable.
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
707 :print If this is the wrong directory, use PREFIX to specify another one.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
708 :print Otherwise, type the root password to continue installing.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
709 :asroot $AAP install
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
710
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
711 installvim {virtual}: installvimbin installtutorbin \
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
712 installruntime installlinks installmanlinks
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
713
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
714 installvimbin {virtual}{force}: $Target $DEST_BIN
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
715 exe = $DEST_BIN/$VIMTARGET
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
716 @if os.path.exists(exe):
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
717 # Move the old executable aside and delete it. Any other method
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
718 # may cause a crash if the executable is currently being used.
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
719 :move {force} $exe $(exe).rm
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
720 :del {force} $(exe).rm
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
721 :copy $VIMTARGET $DEST_BIN
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
722 :do strip $exe
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
723 :chmod $BINMOD $DEST_BIN/$VIMTARGET
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
724 # may create a link to the new executable from /usr/bin/vi
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
725 @if _no.get("LINKIT"):
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
726 :sys $LINKIT
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
727
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
728 # Long list of arguments for the shell script that installs the manual pages
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
729 # for one language.
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
730 INSTALLMANARGS = $(VIMLOC) $(SCRIPTLOC) $(VIMRCLOC) $(HELPSOURCE) $(MANMOD) \
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
731 $(VIMNAME) $(VIMDIFFNAME) $(EVIMNAME)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
732
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
733 # Install most of the runtime files
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
734 installruntime {virtual}: installrtbase installmacros installtutor installspell
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
735
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
736 # install the help files; first adjust the contents for the location
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
737 installrtbase {virtual}{force}: $HELPSOURCE/vim.1 $DEST_VIM
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
738 $DEST_RT $DEST_HELP $DEST_COL $DEST_SYN $DEST_IND
827
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 819
diff changeset
739 $DEST_FTP $DEST_AUTO $DEST_AUTO/xml $DEST_PLUG $DEST_TUTOR
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 819
diff changeset
740 $DEST_COMP $DEST_SPELL $DEST_PRINT
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 815
diff changeset
741 :chmod 755 installman.sh
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
742 :sys ./installman.sh install $(DEST_MAN) "" $(INSTALLMANARGS)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
743
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
744 :cd $HELPSOURCE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
745 @try:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
746 XTRA = `glob.glob("*.??x")` `glob.glob("tags-??")`
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
747 @except:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
748 XTRA = # It's OK if there are no matches.
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
749 :copy *.txt tags $XTRA $DEST_HELP
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
750 :cd -
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
751 :cd $DEST_HELP
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
752 :chmod $HELPMOD *.txt tags $XTRA
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
753 :cd -
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
754 :copy $HELPSOURCE/*.pl $DEST_HELP
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
755 :chmod $SCRIPTMOD $DEST_HELP/*.pl
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
756 # install the menu files
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
757 :copy $SCRIPTSOURCE/menu.vim $SYS_MENU_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
758 :chmod $VIMSCRIPTMOD $SYS_MENU_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
759 :copy $SCRIPTSOURCE/synmenu.vim $SYS_SYNMENU_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
760 :chmod $VIMSCRIPTMOD $SYS_SYNMENU_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
761 :copy $SCRIPTSOURCE/delmenu.vim $SYS_DELMENU_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
762 :chmod $VIMSCRIPTMOD $SYS_DELMENU_FILE
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
763 # install the evim file
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
764 :copy $SCRIPTSOURCE/mswin.vim $MSWIN_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
765 :chmod $VIMSCRIPTMOD $MSWIN_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
766 :copy $SCRIPTSOURCE/evim.vim $EVIM_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
767 :chmod $VIMSCRIPTMOD $EVIM_FILE
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
768 # install the bugreport file
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
769 :copy $SCRIPTSOURCE/bugreport.vim $SYS_BUGR_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
770 :chmod $VIMSCRIPTMOD $SYS_BUGR_FILE
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
771 # install the example vimrc files
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
772 :copy $SCRIPTSOURCE/vimrc_example.vim $DEST_SCRIPT
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
773 :chmod $VIMSCRIPTMOD $DEST_SCRIPT/vimrc_example.vim
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
774 :copy $SCRIPTSOURCE/gvimrc_example.vim $DEST_SCRIPT
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
775 :chmod $VIMSCRIPTMOD $DEST_SCRIPT/gvimrc_example.vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
776 # install the file type detection files
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
777 :copy $SCRIPTSOURCE/filetype.vim $SYS_FILETYPE_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
778 :chmod $VIMSCRIPTMOD $SYS_FILETYPE_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
779 :copy $SCRIPTSOURCE/ftoff.vim $SYS_FTOFF_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
780 :chmod $VIMSCRIPTMOD $SYS_FTOFF_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
781 :copy $SCRIPTSOURCE/scripts.vim $SYS_SCRIPTS_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
782 :chmod $VIMSCRIPTMOD $SYS_SCRIPTS_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
783 :copy $SCRIPTSOURCE/ftplugin.vim $SYS_FTPLUGIN_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
784 :chmod $VIMSCRIPTMOD $SYS_FTPLUGIN_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
785 :copy $SCRIPTSOURCE/ftplugof.vim $SYS_FTPLUGOF_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
786 :chmod $VIMSCRIPTMOD $SYS_FTPLUGOF_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
787 :copy $SCRIPTSOURCE/indent.vim $SYS_INDENT_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
788 :chmod $VIMSCRIPTMOD $SYS_INDENT_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
789 :copy $SCRIPTSOURCE/indoff.vim $SYS_INDOFF_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
790 :chmod $VIMSCRIPTMOD $SYS_INDOFF_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
791 :copy $SCRIPTSOURCE/optwin.vim $SYS_OPTWIN_FILE
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
792 :chmod $VIMSCRIPTMOD $SYS_OPTWIN_FILE
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
793 # install the print resource files
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
794 :copy $PRINTSOURCE/*.ps $DEST_PRINT
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
795 :chmod $FILEMOD $DEST_PRINT/*.ps
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
796 # install the colorscheme files
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
797 :copy $COLSOURCE/*.vim $COLSOURCE/README.txt $DEST_COL
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
798 :chmod $HELPMOD $DEST_COL/*.vim $DEST_COL/README.txt
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
799 # install the syntax files
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
800 :copy $SYNSOURCE/*.vim $SYNSOURCE/README.txt $DEST_SYN
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
801 :chmod $HELPMOD $DEST_SYN/*.vim $DEST_SYN/README.txt
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
802 # install the indent files
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
803 :copy $INDSOURCE/*.vim $INDSOURCE/README.txt $DEST_IND
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
804 :chmod $HELPMOD $DEST_IND/*.vim
446
7472c565592a updated for version 7.0117
vimboss
parents: 302
diff changeset
805 # install the standard autoload files
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
806 :copy $AUTOSOURCE/*.vim $AUTOSOURCE/README.txt $DEST_AUTO
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
807 :chmod $HELPMOD $DEST_AUTO/*.vim $DEST_AUTO/README.txt
827
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 819
diff changeset
808 :copy $AUTOSOURCE/xml/*.vim $DEST_AUTO/xml
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 819
diff changeset
809 :chmod $HELPMOD $DEST_AUTO/xml/*.vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
810 # install the standard plugin files
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
811 :copy $PLUGSOURCE/*.vim $PLUGSOURCE/README.txt $DEST_PLUG
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
812 :chmod $HELPMOD $DEST_PLUG/*.vim $DEST_PLUG/README.txt
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
813 # install the ftplugin files
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
814 :copy $FTPLUGSOURCE/*.vim $FTPLUGSOURCE/README.txt $DEST_FTP
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
815 :chmod $HELPMOD $DEST_FTP/*.vim $DEST_FTP/README.txt
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
816 # install the compiler files
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
817 :copy $COMPSOURCE/*.vim $COMPSOURCE/README.txt $DEST_COMP
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
818 :chmod $HELPMOD $DEST_COMP/*.vim $DEST_COMP/README.txt
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
819
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
820 installmacros {virtual}{force}: $MACROSOURCE $DEST_VIM $DEST_RT $DEST_MACRO
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
821 :copy {recursive}{force} $MACROSOURCE/* $DEST_MACRO
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
822 # Delete any CVS and AAPDIR directories.
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
823 # Use the ":tree" command if possible. It was added later, fall back
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
824 # to using "find" when it doesn't work.
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
825 @try:
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
826 :tree $DEST_MACRO {dirname = CVS}
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
827 :del {recursive} $name
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
828 :tree $DEST_MACRO {dirname = AAPDIR}
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
829 :del {recursive} $name
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
830 :tree $DEST_MACRO {dirname = .*}
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
831 :chmod $DIRMOD $name
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
832 :tree $DEST_MACRO {filename = .*}
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
833 :chmod $FILEMOD $name
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
834 @except:
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
835 @ ok, cvsdirs = redir_system('find %s -name CVS -print' % _no.DEST_MACRO)
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
836 @ if ok and cvsdirs:
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
837 :del {recursive} $cvsdirs
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
838 :sys chmod $DIRMOD ``find $DEST_MACRO -type d -print``
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
839 :sys chmod $FILEMOD ``find $DEST_MACRO -type f -print``
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
840 :chmod $SCRIPTMOD $DEST_MACRO/less.sh
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
841
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
842 # install the tutor files
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
843 installtutorbin {virtual}{force}: $DEST_VIM
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
844 :copy vimtutor $DEST_BIN/$(VIMNAME)tutor
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
845 :chmod $SCRIPTMOD $DEST_BIN/$(VIMNAME)tutor
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
846
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
847 installtutor {virtual}{force}: $DEST_RT $DEST_TUTOR
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
848 :copy $TUTORSOURCE/tutor* $TUTORSOURCE/README* $DEST_TUTOR
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
849 :chmod $HELPMOD $DEST_TUTOR/*
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
850
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
851 # Install the spell files, if they exist. This assumes at least the English
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
852 # spell file is there.
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
853 installspell {virtual}: $(DEST_VIM) $(DEST_RT) $(DEST_SPELL)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
854 enspl = $(SPELLSOURCE)/en.latin1.spl
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
855 @if os.path.exists(enspl):
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
856 :copy $(SPELLSOURCE)/*.spl $(SPELLSOURCE)/*.vim $(DEST_SPELL)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
857 :chmod $(HELPMOD) $(DEST_SPELL)/*.spl $(DEST_SPELL)/*.vim
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
858 @try:
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
859 :copy $(SPELLSOURCE)/*.sug $(DEST_SPELL)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
860 :chmod $(HELPMOD) $(DEST_SPELL)/*.sug
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
861 @except:
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
862 @ pass
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
863
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
864 # install helper program xxd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
865 installtools {virtual}{force}: $TOOLS $DEST_BIN $DEST_MAN \
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
866 $TOOLSSOURCE $DEST_VIM $DEST_RT $DEST_TOOLS \
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
867 $INSTALL_TOOL_LANGS
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
868 xxd = $DEST_BIN/xxd$EXESUF
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
869 @if os.path.exists(xxd):
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
870 :move {force} $xxd $(xxd).rm
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
871 :del $(xxd).rm
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
872 :copy xxd/xxd$EXESUF $DEST_BIN
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
873 :do strip $DEST_BIN/xxd$EXESUF
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
874 :chmod $BINMOD $DEST_BIN/xxd$EXESUF
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 815
diff changeset
875 :chmod 755 installman.sh
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
876 :sys ./installman.sh xxd $(DEST_MAN) "" $(INSTALLMANARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
877 #
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
878 # install the runtime tools
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
879 @try:
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
880 @ if aap_has(":tree"):
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
881 # New method: copy everything and delete CVS and AAPDIR dirs
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
882 :copy {recursive} $TOOLSSOURCE/* $DEST_TOOLS
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
883 :tree $DEST_TOOLS {dirname = CVS}
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
884 :delete {recursive} $name
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
885 :tree $DEST_TOOLS {dirname = AAPDIR}
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
886 :delete {recursive} $name
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
887 @except:
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
888 # Old method: copy only specific files and directories.
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
889 :copy {recursive} $TOOLSSOURCE/README.txt $TOOLSSOURCE/[a-z]* $DEST_TOOLS
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
890 :chmod $FILEMOD $DEST_TOOLS/*
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
891 # replace the path in some tools
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
892 :progsearch perlpath perl
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
893 @if perlpath:
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
894 :cat $TOOLSSOURCE/efm_perl.pl |
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
895 :eval re.sub("/usr/bin/perl", perlpath, stdin)
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
896 >! $DEST_TOOLS/efm_perl.pl
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
897 @else:
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
898 :copy $TOOLSSOURCE/efm_perl.pl $DEST_TOOLS
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
899
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
900 :progsearch awkpath nawk gawk awk
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
901 @if awkpath:
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
902 :cat $TOOLSSOURCE/mve.awk |
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
903 :eval re.sub("/usr/bin/nawk", awkpath, stdin)
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
904 >! $DEST_TOOLS/mve.awk
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
905 @else:
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
906 :copy $TOOLSSOURCE/mve.awk $DEST_TOOLS
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
907
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
908 :sys chmod $SCRIPTMOD ``grep -l "^#!" $DEST_TOOLS/*``
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
909
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
910 # install the language specific files for tools, if they were unpacked
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
911 install-tool-languages:
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 815
diff changeset
912 :chmod 755 installman.sh
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
913 :sys ./installman.sh xxd $(DEST_MAN_FR) "-fr" $(INSTALLMANARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
914 :sys ./installman.sh xxd $(DEST_MAN_FR_I) "-fr" $(INSTALLMANARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
915 :sys ./installman.sh xxd $(DEST_MAN_FR_U) "-fr.UTF-8" $(INSTALLMANARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
916 :sys ./installman.sh xxd $(DEST_MAN_IT) "-it" $(INSTALLMANARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
917 :sys ./installman.sh xxd $(DEST_MAN_IT_I) "-it" $(INSTALLMANARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
918 :sys ./installman.sh xxd $(DEST_MAN_IT_U) "-it.UTF-8" $(INSTALLMANARGS)
809
4f1b94b51e99 updated for version 7.0b02
vimboss
parents: 796
diff changeset
919 :sys ./installman.sh xxd $(DEST_MAN_PL) "-pl" $(INSTALLMANARGS)
4f1b94b51e99 updated for version 7.0b02
vimboss
parents: 796
diff changeset
920 :sys ./installman.sh xxd $(DEST_MAN_PL_U) "-pl.UTF-8" $(INSTALLMANARGS)
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
921 :sys ./installman.sh xxd $(DEST_MAN_RU) "-ru" $(INSTALLMANARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
922 :sys ./installman.sh xxd $(DEST_MAN_RU_U) "-ru.UTF-8" $(INSTALLMANARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
923
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
924 # install the language specific files, if they were unpacked
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
925 install-languages {virtual}{force}: languages $DEST_LANG $DEST_KMAP
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 815
diff changeset
926 :chmod 755 installman.sh
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
927 :sys ./installman.sh install $(DEST_MAN_FR) "-fr" $(INSTALLMANARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
928 :sys ./installman.sh install $(DEST_MAN_FR_I) "-fr" $(INSTALLMANARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
929 :sys ./installman.sh install $(DEST_MAN_FR_U) "-fr.UTF-8" $(INSTALLMANARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
930 :sys ./installman.sh install $(DEST_MAN_IT) "-it" $(INSTALLMANARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
931 :sys ./installman.sh install $(DEST_MAN_IT_I) "-it" $(INSTALLMANARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
932 :sys ./installman.sh install $(DEST_MAN_IT_U) "-it.UTF-8" $(INSTALLMANARGS)
809
4f1b94b51e99 updated for version 7.0b02
vimboss
parents: 796
diff changeset
933 :sys ./installman.sh install $(DEST_MAN_PL) "-pl" $(INSTALLMANARGS)
4f1b94b51e99 updated for version 7.0b02
vimboss
parents: 796
diff changeset
934 :sys ./installman.sh install $(DEST_MAN_PL_U) "-pl.UTF-8" $(INSTALLMANARGS)
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
935 :sys ./installman.sh install $(DEST_MAN_RU) "-ru" $(INSTALLMANARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
936 :sys ./installman.sh install $(DEST_MAN_RU_U) "-ru.UTF-8" $(INSTALLMANARGS)
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 815
diff changeset
937 :chmod 755 installml.sh
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
938 :sys ./installml.sh install "$(GUI_MAN_TARGETS)" \
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
939 $(DEST_MAN_FR) $(INSTALLMLARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
940 :sys ./installml.sh install "$(GUI_MAN_TARGETS)" \
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
941 $(DEST_MAN_FR_I) $(INSTALLMLARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
942 :sys ./installml.sh install "$(GUI_MAN_TARGETS)" \
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
943 $(DEST_MAN_FR_U) $(INSTALLMLARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
944 :sys ./installml.sh install "$(GUI_MAN_TARGETS)" \
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
945 $(DEST_MAN_IT) $(INSTALLMLARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
946 :sys ./installml.sh install "$(GUI_MAN_TARGETS)" \
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
947 $(DEST_MAN_IT_I) $(INSTALLMLARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
948 :sys ./installml.sh install "$(GUI_MAN_TARGETS)" \
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
949 $(DEST_MAN_IT_U) $(INSTALLMLARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
950 :sys ./installml.sh install "$(GUI_MAN_TARGETS)" \
809
4f1b94b51e99 updated for version 7.0b02
vimboss
parents: 796
diff changeset
951 $(DEST_MAN_PL) $(INSTALLMLARGS)
4f1b94b51e99 updated for version 7.0b02
vimboss
parents: 796
diff changeset
952 :sys ./installml.sh install "$(GUI_MAN_TARGETS)" \
4f1b94b51e99 updated for version 7.0b02
vimboss
parents: 796
diff changeset
953 $(DEST_MAN_PL_U) $(INSTALLMLARGS)
4f1b94b51e99 updated for version 7.0b02
vimboss
parents: 796
diff changeset
954 :sys ./installml.sh install "$(GUI_MAN_TARGETS)" \
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
955 $(DEST_MAN_RU) $(INSTALLMLARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
956 :sys ./installml.sh install "$(GUI_MAN_TARGETS)" \
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
957 $(DEST_MAN_RU_U) $(INSTALLMLARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
958
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
959 @if _no.MAKEMO:
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
960 :sys cd $PODIR; $MAKE prefix=$DESTDIR$prefix \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
961 LOCALEDIR=$DEST_LANG INSTALL_DATA=cp FILEMOD=$FILEMOD install
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
962 @if os.path.exists(_no.LANGSOURCE):
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
963 :print installing language files
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
964 :copy $LANGSOURCE/README.txt $LANGSOURCE/*.vim $DEST_LANG
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
965 :chmod $FILEMOD $DEST_LANG/*.vim
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
966 @if os.path.exists(_no.KMAPSOURCE):
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
967 :copy $KMAPSOURCE/README.txt $KMAPSOURCE/*.vim $DEST_KMAP
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
968 :chmod $FILEMOD $DEST_KMAP/*.vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
969
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
970 # install the icons for KDE, if the directory exists and the icon doesn't.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
971 ICON48PATH = $DESTDIR$DATADIR/icons/hicolor/48x48/apps
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
972 ICON32PATH = $DESTDIR$DATADIR/icons/locolor/32x32/apps
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
973 ICON16PATH = $DESTDIR$DATADIR/icons/locolor/16x16/apps
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
974 KDEPATH = $HOME/.kde/share/icons
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
975 install-icons {virtual}:
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
976 gp = $ICON48PATH/gvim.png
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
977 @if os.path.isdir(_no.ICON48PATH) and not os.path.exists(gp):
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
978 :copy $SCRIPTSOURCE/vim48x48.png $gp
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
979 gp = $ICON32PATH/gvim.png
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
980 @if os.path.isdir(_no.ICON32PATH) and not os.path.exists(gp):
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
981 :copy $SCRIPTSOURCE/vim32x32.png $gp
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
982 gp = $ICON16PATH/gvim.png
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
983 @if os.path.isdir(_no.ICON16PATH) and not os.path.exists(gp):
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
984 :copy $SCRIPTSOURCE/vim16x16.png $gp
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
985
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
986
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
987 $HELPSOURCE/vim.1 $MACROSOURCE $TOOLSSOURCE:
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
988 @if not os.path.exists(_no.TOOLSSOURCE):
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
989 :print Runtime files not found.
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
990 :error You need to unpack the runtime archive before running "make install".
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
991
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
992 # create links from various names to vim. This is only done when the links
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
993 # (or executables with the same name) don't exist yet.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
994 installlinks {virtual}: $GUI_TARGETS \
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
995 $DEST_BIN/$EXTARGET \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
996 $DEST_BIN/$VIEWTARGET \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
997 $DEST_BIN/$RVIMTARGET \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
998 $DEST_BIN/$RVIEWTARGET \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
999 $INSTALLVIMDIFF
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1000
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1001 installglinks {virtual}: $DEST_BIN/$GVIMTARGET \
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
1002 $DEST_BIN/$GVIEWTARGET \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
1003 $DEST_BIN/$RGVIMTARGET \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
1004 $DEST_BIN/$RGVIEWTARGET \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
1005 $DEST_BIN/$EVIMTARGET \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
1006 $DEST_BIN/$EVIEWTARGET \
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
1007 $INSTALLGVIMDIFF
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1008
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1009 installvimdiff {virtual}: $DEST_BIN/$VIMDIFFTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1010 installgvimdiff {virtual}: $DEST_BIN/$GVIMDIFFTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1011
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1012 # These dependencies use an empty buildcheck so that they are only done when
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1013 # the target doesn't exist.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1014 $DEST_BIN/$EXTARGET: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1015 :sys cd $DEST_BIN; ln -s $VIMTARGET $EXTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1016
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1017 $DEST_BIN/$VIEWTARGET: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1018 :sys cd $DEST_BIN; ln -s $VIMTARGET $VIEWTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1019
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1020 $DEST_BIN/$GVIMTARGET: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1021 :sys cd $DEST_BIN; ln -s $VIMTARGET $GVIMTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1022
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1023 $DEST_BIN/$GVIEWTARGET: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1024 :sys cd $DEST_BIN; ln -s $VIMTARGET $GVIEWTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1025
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1026 $DEST_BIN/$RVIMTARGET: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1027 :sys cd $DEST_BIN; ln -s $VIMTARGET $RVIMTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1028
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1029 $DEST_BIN/$RVIEWTARGET: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1030 :sys cd $DEST_BIN; ln -s $VIMTARGET $RVIEWTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1031
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1032 $DEST_BIN/$RGVIMTARGET: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1033 :sys cd $DEST_BIN; ln -s $VIMTARGET $RGVIMTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1034
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1035 $DEST_BIN/$RGVIEWTARGET: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1036 :sys cd $DEST_BIN; ln -s $VIMTARGET $RGVIEWTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1037
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1038 $DEST_BIN/$VIMDIFFTARGET: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1039 :sys cd $DEST_BIN; ln -s $VIMTARGET $VIMDIFFTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1040
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1041 $DEST_BIN/$GVIMDIFFTARGET: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1042 :sys cd $DEST_BIN; ln -s $VIMTARGET $GVIMDIFFTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1043
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1044 $DEST_BIN/$EVIMTARGET: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1045 :sys cd $DEST_BIN; ln -s $VIMTARGET $EVIMTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1046
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1047 $DEST_BIN/$EVIEWTARGET: {buildcheck = }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1048 :sys cd $DEST_BIN; ln -s $VIMTARGET $EVIEWTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1049
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
1050 # 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
1051 # done when the links (or manpages with the same name) don't exist yet.
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1052 INSTALLMLARGS = $(VIMNAME) $(VIMDIFFNAME) $(EVIMNAME) \
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1053 $(EXNAME) $(VIEWNAME) $(RVIMNAME) $(RVIEWNAME) \
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1054 $(GVIMNAME) $(GVIEWNAME) $(RGVIMNAME) $(RGVIEWNAME) \
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1055 $(GVIMDIFFNAME) $(EVIEWNAME)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1056
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1057 installmanlinks {virtual}:
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 815
diff changeset
1058 :chmod 755 installml.sh
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1059 :sys ./installml.sh install "$(GUI_MAN_TARGETS)" \
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1060 $(DEST_MAN) $(INSTALLMLARGS)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1061
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1062 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1063 # U N I N S T A L L
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1064 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1065 uninstall {virtual}{force}: uninstall_runtime
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1066 :del {force} $DEST_BIN/$VIMTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1067 :del {force} $DEST_BIN/vimtutor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1068 :del {force} $DEST_BIN/$EXTARGET $DEST_BIN/$VIEWTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1069 :del {force} $DEST_BIN/$GVIMTARGET $DEST_BIN/$GVIEWTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1070 :del {force} $DEST_BIN/$RVIMTARGET $DEST_BIN/$RVIEWTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1071 :del {force} $DEST_BIN/$RGVIMTARGET $DEST_BIN/$RGVIEWTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1072 :del {force} $DEST_BIN/$VIMDIFFTARGET $DEST_BIN/$GVIMDIFFTARGET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1073 :del {force} $DEST_BIN/$EVIMTARGET $DEST_BIN/$EVIEWTARGET
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1074 :del {force} $DEST_BIN/xxd$EXESUF
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1075
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1076 # Note: "deldir" will fail if any files were added after "make install", that
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1077 # is intentionally: Keep files the user added.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1078 uninstall_runtime {virtual}{force}:
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 815
diff changeset
1079 :chmod 755 installman.sh
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1080 :sys ./installman.sh uninstall $(DEST_MAN) "" $(INSTALLMANARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1081 :sys ./installman.sh uninstall $(DEST_MAN_FR) "" $(INSTALLMANARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1082 :sys ./installman.sh uninstall $(DEST_MAN_FR_I) "" $(INSTALLMANARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1083 :sys ./installman.sh uninstall $(DEST_MAN_FR_U) "" $(INSTALLMANARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1084 :sys ./installman.sh uninstall $(DEST_MAN_IT) "" $(INSTALLMANARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1085 :sys ./installman.sh uninstall $(DEST_MAN_IT_I) "" $(INSTALLMANARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1086 :sys ./installman.sh uninstall $(DEST_MAN_IT_U) "" $(INSTALLMANARGS)
809
4f1b94b51e99 updated for version 7.0b02
vimboss
parents: 796
diff changeset
1087 :sys ./installman.sh uninstall $(DEST_MAN_PL) "" $(INSTALLMANARGS)
4f1b94b51e99 updated for version 7.0b02
vimboss
parents: 796
diff changeset
1088 :sys ./installman.sh uninstall $(DEST_MAN_PL_U) "" $(INSTALLMANARGS)
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1089 :sys ./installman.sh uninstall $(DEST_MAN_RU) "" $(INSTALLMANARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1090 :sys ./installman.sh uninstall $(DEST_MAN_RU_U) "" $(INSTALLMANARGS)
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 815
diff changeset
1091 :chmod 755 installml.sh
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1092 :sys ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1093 $(DEST_MAN) $(INSTALLMLARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1094 :sys ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1095 $(DEST_MAN_FR) $(INSTALLMLARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1096 :sys ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1097 $(DEST_MAN_FR_I) $(INSTALLMLARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1098 :sys ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1099 $(DEST_MAN_FR_U) $(INSTALLMLARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1100 :sys ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1101 $(DEST_MAN_IT) $(INSTALLMLARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1102 :sys ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1103 $(DEST_MAN_IT_I) $(INSTALLMLARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1104 :sys ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1105 $(DEST_MAN_IT_U) $(INSTALLMLARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1106 :sys ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
809
4f1b94b51e99 updated for version 7.0b02
vimboss
parents: 796
diff changeset
1107 $(DEST_MAN_PL) $(INSTALLMLARGS)
4f1b94b51e99 updated for version 7.0b02
vimboss
parents: 796
diff changeset
1108 :sys ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
4f1b94b51e99 updated for version 7.0b02
vimboss
parents: 796
diff changeset
1109 $(DEST_MAN_PL_U) $(INSTALLMLARGS)
4f1b94b51e99 updated for version 7.0b02
vimboss
parents: 796
diff changeset
1110 :sys ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1111 $(DEST_MAN_RU) $(INSTALLMLARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1112 :sys ./installml.sh uninstall "$(GUI_MAN_TARGETS)" \
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1113 $(DEST_MAN_RU_U) $(INSTALLMLARGS)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1114 :del {force} $DEST_MAN/xxd.1
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1115 :del {force} $(DEST_MAN_FR)/xxd.1 $(DEST_MAN_FR_I)/xxd.1 $(DEST_MAN_FR_U)/xxd.1
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1116 :del {force} $(DEST_MAN_IT)/xxd.1 $(DEST_MAN_IT_I)/xxd.1 $(DEST_MAN_IT_U)/xxd.1
809
4f1b94b51e99 updated for version 7.0b02
vimboss
parents: 796
diff changeset
1117 :del {force} $(DEST_MAN_PL)/xxd.1 $(DEST_MAN_PL_U)/xxd.1
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1118 :del {force} $(DEST_MAN_RU)/xxd.1 $(DEST_MAN_RU_U)/xxd.1
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1119
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1120 :del {force} $DEST_HELP/*.txt $DEST_HELP/tags $DEST_HELP/*.pl
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1121 :del {force} $SYS_MENU_FILE $SYS_SYNMENU_FILE $SYS_DELMENU_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1122 :del {force} $SYS_BUGR_FILE $EVIM_FILE $MSWIN_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1123 :del {force} $DEST_SCRIPT/gvimrc_example.vim $DEST_SCRIPT/vimrc_example.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1124 :del {force} $SYS_FILETYPE_FILE $SYS_FTOFF_FILE $SYS_SCRIPTS_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1125 :del {force} $SYS_INDOFF_FILE $SYS_INDENT_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1126 :del {force} $SYS_FTPLUGOF_FILE $SYS_FTPLUGIN_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1127 :del {force} $SYS_OPTWIN_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1128 :del {force} $DEST_COL/*.vim $DEST_COL/README.txt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1129 :del {force} $DEST_SYN/*.vim $DEST_SYN/README.txt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1130 :del {force} $DEST_IND/*.vim $DEST_IND/README.txt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1131 :del {force} $DEST_PRINT/*.ps
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1132 :del {force}{recursive} $DEST_MACRO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1133 :del {force}{recursive} $DEST_TUTOR
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1134 :del {force}{recursive} $DEST_SPELL
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1135 :del {force}{recursive} $DEST_TOOLS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1136 :del {force}{recursive} $DEST_LANG
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1137 :del {force}{recursive} $DEST_KMAP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1138 :del {force}{recursive} $DEST_COMP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1139 :deldir {force} $DEST_HELP $DEST_COL $DEST_SYN $DEST_IND
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1140 :del {force}{recursive} $DEST_FTP/*.vim $DEST_FTP/README.txt
827
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 819
diff changeset
1141 :del {force} $DEST_AUTO/*.vim $DEST_AUTO/README.txt $DEST_AUTO/xml/*.vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1142 :del {force} $DEST_PLUG/*.vim $DEST_PLUG/README.txt
827
fd1b3406fd1c updated for version 7.0d02
vimboss
parents: 819
diff changeset
1143 :deldir {force} $DEST_FTP $DEST_AUTO/xml $DEST_AUTO $DEST_PLUG $DEST_PRINT $DEST_RT
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
1144 # This will fail when other Vim versions are installed, no worries.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1145 @try:
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
1146 :deldir $DEST_VIM
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1147 @except:
532
7052f11a3dc9 updated for version 7.0150
vimboss
parents: 446
diff changeset
1148 :print Cannot delete $DEST_VIM
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1149
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1150 ###############################################################################
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1151 ### MacOS X installation
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1152 ###
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1153 ### This installs a runnable Vim.app in $(prefix)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1154
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1155 REZ = /Developer/Tools/Rez
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1156 RESDIR = $(APPDIR)/Contents/Resources
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1157 @r = re.compile('.*VIM_VERSION_SHORT\\s*"(\\d[^"]*)".*', re.S)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1158 VERSION = /`r.match(open("version.h").read()).group(1)`
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1159
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1160 ### Common flags
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1161 M4FLAGSX = $?(M4FLAGS) -DAPP_EXE=$(VIMNAME) -DAPP_NAME=$(VIMNAME) \
1120
e6db096b07a1 updated for version 7.1a
vimboss
parents: 827
diff changeset
1162 -DAPP_VER=$(VERSION)
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1163
1120
e6db096b07a1 updated for version 7.1a
vimboss
parents: 827
diff changeset
1164 # Resources used for the Mac are in one directory.
e6db096b07a1 updated for version 7.1a
vimboss
parents: 827
diff changeset
1165 RSRC_DIR = os_mac_rsrc
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1166
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1167 :attr {directory = $DIRMOD} $RESDIR
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1168
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1169 install_macosx {virtual}: gui_bundle
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1170 # Remove the link to the runtime dir, don't want to copy all of that.
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1171 :delete {force} $(RESDIR)/vim/runtime
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1172 :copy {r} $APPDIR $DESTDIR$prefix
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1173 :tree $DESTDIR$prefix {dirname = AAPDIR}
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1174 :delete {recursive} $name
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1175 # Install the runtime files. Recursive!
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1176 :mkdir {r}{f} $DESTDIR$prefix/$RESDIR/vim/runtime
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1177 # :mkdir $(DESTDIR)$(prefix)/$(APPDIR)/bin
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1178 :execute main.aap PREFIX=$DESTDIR$prefix/$RESDIR/vim VIMRTLOC=$DESTDIR$prefix/$RESDIR/vim/runtime installruntime
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1179 # Put the link back.
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1180 :symlink `os.getcwd()`/../runtime $RESDIR/vim/runtime
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1181 # TODO: Create the vimtutor application.
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1182
1407
26b0b2f606d2 updated for version 7.1-122
vimboss
parents: 1188
diff changeset
1183 gui_bundle {virtual}: $(RESDIR) bundle-dir bundle-executable bundle-info \
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1184 bundle-resource bundle-language
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1185
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1186 bundle-dir {virtual}: $(APPDIR)/Contents $(VIMTARGET)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1187 # Make a link to the runtime directory, so that we can try out the executable
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1188 # without installing it.
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1189 :mkdir {r}{f} $(RESDIR)/vim
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1190 :symlink {quiet} `os.getcwd()`/../runtime $(RESDIR)/vim/runtime
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1191
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1192 bundle-executable {virtual}: $(VIMTARGET)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1193 :mkdir {r}{f} $(APPDIR)/Contents/MacOS
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1194 :copy $(VIMTARGET) $(APPDIR)/Contents/MacOS/$(VIMTARGET)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1195
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1196 bundle-info {virtual}: bundle-dir
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1197 :print Creating PkgInfo
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1198 :print "APPLVIM!" >! $(APPDIR)/Contents/PkgInfo
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1199 :print Creating Info.plist
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1200 :sys m4 $(M4FLAGSX) infplist.xml > $(APPDIR)/Contents/Info.plist
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1201
1120
e6db096b07a1 updated for version 7.1a
vimboss
parents: 827
diff changeset
1202 bundle-resource {virtual}: bundle-dir bundle-rsrc
1407
26b0b2f606d2 updated for version 7.1-122
vimboss
parents: 1188
diff changeset
1203 :copy {force} $(RSRC_DIR)/*.icns $(RESDIR)
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1204
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1205 ### Classic resources
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1206 # Resource fork (in the form of a .rsrc file) for Classic Vim (Mac OS 9)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1207 # This file is also required for OS X Vim.
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1208 bundle-rsrc {virtual}: os_mac.rsr.hqx
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1209 :print Creating resource fork
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1210 :sys python dehqx.py $source
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1211 :del {force} gui_mac.rsrc
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1212 :move gui_mac.rsrc.rsrcfork $(RESDIR)/$(VIMNAME).rsrc
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1213
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1214 # po/Make_osx.pl says something about generating a Mac message file
4352
04736b4030ec updated for version 7.3.925
Bram Moolenaar <bram@vim.org>
parents: 2577
diff changeset
1215 # for Ukrainian. Would somebody using Mac OS X in Ukrainian
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1216 # *really* be upset that Carbon Vim was not localised in
4352
04736b4030ec updated for version 7.3.925
Bram Moolenaar <bram@vim.org>
parents: 2577
diff changeset
1217 # Ukrainian?
796
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1218 #
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1219 #bundle-language: bundle-dir po/Make_osx.pl
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1220 # cd po && perl Make_osx.pl --outdir ../$(RESDIR) $(MULTILANG)
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1221 bundle-language {virtual}: bundle-dir
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1222
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1223 $(APPDIR)/Contents:
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1224 :mkdir {r} $(APPDIR)/Contents/MacOS
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1225 :mkdir {r} $(RESDIR)/English.lproj
cc3902a09300 updated for version 7.0232
vimboss
parents: 690
diff changeset
1226
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1227
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1228 # vim: sts=4 sw=4 :