Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 514 lines (433 sloc) 20.63 kb
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
1 # Makefile.in
2fe6e17 @mbert Import Elvis 2.2_1 (written by Steve Kirkendall)
authored
2 # $Id: Makefile.in,v 2.124 2004/03/19 23:02:53 steve Exp $
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
3 #
4 # Makefile.in should not be modified! The "configure" script reads Makefile.in
5 # and writes a customized Makefile by editing the values of the following
6 # macros. If the "configure" script doesn't support your version of UNIX,
7 # I suggest you do a plain "configure unix" and then hand-edit the resulting
8 # Makefile. That will also create a "config.h" file which may require some
9 # tweaking.
10
11 ################################################################################
12 # This is the name of the compiler, along with any flags that should be used
13 # both for compiling and for linking. Typical values are "cc -g" or "cc -O".
14 # If you're compiling with X-windows support, you may need to add a
15 # "-I/usr/X11/include" flag or something similar.
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
16 #CC=gcc -g -Wall -pedantic -Wtraditional -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -I/usr/include/freetype2 -I/usr/X11R6/include
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
17 CC=cc -O
18
19 ################################################################################
20 # This macro gives any arguments which will be needed during linking.
21 # Mostly, this means "-Llibdir" and "-llib" flags. If you're compiling with
22 # X-windows support, then you'll have to add a "-lX11" and maybe a
23 # "-L/usr/X11/lib" flag or something similar.
24 LIBS=-ltermcap
25
26 ################################################################################
27 # This should be "unix" for all UNIX variants. It causes the compiler to use
28 # files from the osunix subdirectory, and do a UNIX-style installation.
29 OS=unix
30
31 ################################################################################
32 # This is a command for compiling files in a subdirectory, and placing the
33 # resultant object files in the current directory. Most UNIX compilers behave
34 # this way naturally, so you probably won't need to modify this.
35 OSCC=$(CC) -I. $(CFLAGS) $(FLAGC)
36
37 ################################################################################
38 # This is the separator between a subdirectory name and a file name. For UNIX
39 # this should always be a "/" character.
40 SLASH=/
41
42 ################################################################################
43 # This is the file name extension for object files. For UNIX, this is almost
44 # always ".o"
45 OBJ=.o
46
47 ################################################################################
48 # This is the file name extension for executable files. For UNIX, this is
49 # always a null string because UNIX doesn't use file name extensions to mark
50 # executable files.
51 EXE=
52
53 ################################################################################
54 # This is the shell command which is used for deleting a file if it exists.
55 # The "-f" causes "rm" to be silent if the file doesn't exist.
56 RM=rm -f
57
58 ################################################################################
59 # This is the compiler flag which causes compilation but not linking. For
60 # most UNIX compilers, this is "-c".
61 FLAGC=-c
62
63 ################################################################################
64 # This is the compiler flag for adding a directory to the list of directories
65 # to be searched for #include files. For most UNIX compilers, this is "-I".
66 FLAGI=-I
67
68 ################################################################################
69 # This is a list of programs to be created by "make all". The possible list
3a9bb55 @mbert Import Elvis 2.1_3 (written by Steve Kirkendall)
authored
70 # includes elvis$(EXE), ref$(EXE), ctags$(EXE), elvtags$(EXE), and fmt$(EXE).
71 # ctags and elvtags are the same program under different names. The $(EXE) on
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
72 # the end is just in case this Makefile is reconfigured for an operating
73 # system which requires the EXE macro to be something like ".exe".
2fe6e17 @mbert Import Elvis 2.2_1 (written by Steve Kirkendall)
authored
74 ALL=elvis$(EXE) ref$(EXE) elvtags$(EXE) elvfmt$(EXE) elvgdb$(EXE)
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
75
76 ################################################################################
77 # The installation directories are relative to this
78 PREFIX=/usr/local
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
79
80 ################################################################################
81 # This is the directory where "make install" will place the executable programs
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
82 BINDIR=$(PREFIX)/bin
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
83
84 ################################################################################
85 # This is the directory where "make install" will place elvis' support files,
86 # such as the help text and the default initialization scripts. If you change
87 # the value here, then you also need to change it in "config.h"
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
88 DATADIR=$(PREFIX)/share/elvis
89 DOCDIR= $(PREFIX)/share/elvis/doc
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
90
91 ################################################################################
92 # This is the shell command for copying one file to another
93 CP=cp
94
95 ###############################################################################
96 ###############################################################################
97 ###############################################################################
98 ########### ###########
99 ########### S T O P ! ###########
100 ########### ###########
101 ########### You shouldn't need to modify anything below this line ###########
102 ########### ###########
103 ###############################################################################
104 ###############################################################################
105 ###############################################################################
106
107 ###############################################################################
108 # Portable compilation rules
109
2fe6e17 @mbert Import Elvis 2.2_1 (written by Steve Kirkendall)
authored
110 VERSION=2.2_1
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
111 MISC= BUGS README.html COPYING INSTALL Makefile.in configure instman.sh\
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
112 elvis.lsm makwin32.bat makmsdos.bat makos2.cmd e2 \
113 elvis.spec.in Announce-$(VERSION)
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
114 OSSRCS= os$(OS)$(SLASH)osblock.c os$(OS)$(SLASH)osdir.c\
115 os$(OS)$(SLASH)osprg.c os$(OS)$(SLASH)ostext.c\
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
116 os$(OS)$(SLASH)osnet.c os$(OS)$(SLASH)tcaphelp.c
117 OSOBJS= osblock$(OBJ) osdir$(OBJ) osprg$(OBJ) ostext$(OBJ) osnet$(OBJ)
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
118 OSOBJS2=tcaphelp$(OBJ)
119 OSHDRS= os$(OS)$(SLASH)osdef.h
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
120 XBM= guix11/elvis.xbm guix11/elvispin.xbm guix11/gray.xbm
121 X11SRCS=guix11/guix11.c guix11/xclip.c guix11/xevent.c guix11/xmisc.c\
122 guix11/xscroll.c guix11/xstatus.c guix11/xtext.c guix11/xtool.c \
123 guix11/xdialog.c
124 X11OBJS=guix11$(OBJ) xclip$(OBJ) xevent$(OBJ) xmisc$(OBJ) xscroll$(OBJ)\
125 xstatus$(OBJ) xtext$(OBJ) xtool$(OBJ) xdialog$(OBJ)
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
126 X11HDRS=guix11/guix11.h guix11/xclip.h guix11/xdialog.h guix11/xevent.h\
127 guix11/xmisc.h guix11/xscroll.h guix11/xstatus.h guix11/xtext.h\
128 guix11/xtool.h
129
130 GNOMESRCS=guignome/guignome.c guignome/guignome_clip.c guignome/guignome_mousedrag.c guignome/elvisCorba-common.c guignome/elvisCorba-skels.c guignome/elvisCorba-stubs.c guignome/guignome_corba.c
131 GNOMEOBJS=guignome/guignome$(OBJ) guignome/guignome_clip$(OBJ) guignome/guignome_mousedrag$(OBJ) guignome/elvisCorba-common$(OBJ) guignome/elvisCorba-skels$(OBJ) guignome/elvisCorba-stubs$(OBJ) guignome/guignome_corba$(OBJ)
132 GHOMEHDRS=
133
134 GUISRCS=$(GNOMESRCS) $(X11SRCS) guicurs.c guitcap.c guiopen.c
135 GUIOBJS=$(GNOMEOBJS) $(X11OBJS) guicurs$(OBJ) guitcap$(OBJ) guiopen$(OBJ)
136 GUIHDRS=$(GNOMEHDRS) $(X11HDRS)
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
137 LPSRCS= lpescape.c lpovrtyp.c lpps.c
138 LPOBJS= lpescape$(OBJ) lpovrtyp$(OBJ) lpps$(OBJ)
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
139 HDRS= $(OSHDRS) $(GUIHDRS) autocmd.h buffer.h buffer2.h calc.h color.h\
2fe6e17 @mbert Import Elvis 2.2_1 (written by Steve Kirkendall)
authored
140 cut.h descr.h digraph.h display.h display2.h draw.h draw2.h elvctype.h\
141 elvis.h elvisio.h event.h ex.h fold.h gui.h gui2.h input.h lowbuf.h\
142 lp.h map.h mark.h message.h message2.h misc.h more.h move.h need.h\
143 operator.h opsys.h optglob.h options.h regexp.h region.h safe.h scan.h\
144 session.h spell.h state.h state2.h tag.h tagsrch.h tagelvis.h version.h\
145 vi.h vicmd.h window.h config.h
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
146 SRCS= $(OSSRCS) $(GUISRCS) $(LPSRCS) autocmd.c buffer.c calc.c color.c cut.c\
147 descr.c digraph.c display.c dmhex.c dmmarkup.c dmnormal.c dmsyntax.c\
148 draw.c event.c ex.c exaction.c exconfig.c exedit.c exmake.c exsubst.c\
149 fold.c ftp.c gui.c http.c input.c io.c lowbuf.c lp.c main.c map.c\
150 mark.c message.c misc.c more.c move.c need.c operator.c optglob.c\
151 options.c regexp.c region.c regsub.c safe.c scan.c search.c session.c\
152 spell.c state.c tag.c tagsrch.c tagelvis.c url.c vi.c vicmd.c window.c
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
153 OBJ1= $(OSOBJS) optglob$(OBJ) options$(OBJ) safe$(OBJ) session$(OBJ)
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
154 OBJ2= buffer$(OBJ) calc$(OBJ) color$(OBJ) descr$(OBJ) digraph$(OBJ)\
155 display$(OBJ) gui$(OBJ) lowbuf$(OBJ) mark$(OBJ) misc$(OBJ) io$(OBJ)\
156 dmhex$(OBJ) dmmarkup$(OBJ) dmnormal$(OBJ) dmsyntax$(OBJ) scan$(OBJ)
157 OBJ3= $(OSOBJS2) autocmd$(OBJ) cut$(OBJ) draw$(OBJ) event$(OBJ) ex$(OBJ)\
158 exaction$(OBJ) exconfig$(OBJ) exedit$(OBJ) exmake$(OBJ) exsubst$(OBJ)\
159 fold$(OBJ) ftp$(OBJ) http$(OBJ) input$(OBJ) lp$(OBJ) map$(OBJ)\
160 message$(OBJ) move$(OBJ) more$(OBJ) need$(OBJ) operator$(OBJ)\
161 regexp$(OBJ) region$(OBJ) regsub$(OBJ) search$(OBJ) spell$(OBJ)\
162 state$(OBJ) tinytcap$(OBJ) tag$(OBJ) tagsrch$(OBJ) tagelvis$(OBJ)\
163 url$(OBJ) vi$(OBJ) vicmd$(OBJ) window$(OBJ)
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
164 OBJS= $(OBJ1) $(OBJ2) $(OBJ3)
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
165 REFOBJS=ref$(OBJ) tag$(OBJ) tagsrch$(OBJ) safe$(OBJ)
166 CTOBJS= ctags$(OBJ) tag$(OBJ) safe$(OBJ)
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
167 CFLAGS= $(FLAGI)os$(OS)
168 EVERY= $(ALL) verify$(EXE) elvdump$(EXE) calc$(EXE)
169 SHELL= /bin/sh
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
170
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
171 DISTRIB=elvis-$(VERSION)
172 DOSEXE=exedos
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
173 WIN32EXE=exewin32
174 OS2EXE=exeos2
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
175
176 all: $(ALL)
177
178 every: $(EVERY)
179
180 elvis$(EXE): $(HDRS) main$(OBJ) $(OBJS) $(GUIOBJS) $(LPOBJS)
181 $(CC) $(CFLAGS) main$(OBJ) $(OBJS) $(GUIOBJS) $(LPOBJS) $(LIBS) -o elvis$(EXE)
182
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
183 ctags$(EXE): $(CTOBJS)
184 $(CC) $(CFLAGS) $(CTOBJS) -o ctags$(EXE)
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
185
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
186 doc/elvtags.man: doc/ctags.man
187 sed 's/\<CTAGS\>/ELVTAGS/g; s/ctags\>/elvtags/g; s/ant" elvtags/ant" ctags/' doc/ctags.man >doc/elvtags.man
188
3a9bb55 @mbert Import Elvis 2.1_3 (written by Steve Kirkendall)
authored
189 elvtags$(EXE): ctags$(EXE)
190 $(CP) ctags$(EXE) elvtags$(EXE)
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
191
192 elvfmt$(EXE) doc/elvfmt.man: fmt$(EXE) doc/fmt.man
193 $(CP) fmt$(EXE) elvfmt$(EXE)
194 sed 's/\<FMT\>/ELVFMT/g; s/\<fmt\>/elvfmt/g' doc/fmt.man >doc/elvfmt.man
195
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
196 ref$(EXE): $(REFOBJS)
197 $(CC) $(CFLAGS) $(REFOBJS) -o ref$(EXE)
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
198
199 fmt$(EXE): fmt.c os$(OS)$(SLASH)osdir.c
200 $(CC) $(CFLAGS) fmt.c -o fmt$(EXE)
201
2fe6e17 @mbert Import Elvis 2.2_1 (written by Steve Kirkendall)
authored
202 elvgdb$(EXE): elvgdb.c
203 $(CC) $(CFLAGS) elvgdb.c $(LIBS) -o elvgdb$(EXE)
204
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
205 verify$(EXE): $(HDRS) verify$(OBJ) $(OBJ1) $(OBJ2)
206 $(CC) $(CFLAGS) verify$(OBJ) $(OBJ1) $(OBJ2) -o verify$(EXE)
207
208 elvdump$(EXE): $(HDRS) elvdump$(OBJ) $(OBJ1)
209 $(CC) $(CFLAGS) elvdump$(OBJ) $(OBJ1) -o elvdump$(EXE)
210
211 calc: $(HDRS) calc.c
212 $(CC) $(CFLAGS) -DTRY calc.c -o calc
213
214 ###############################################################################
215 # Rules for os-dependent files
216
217 osblock$(OBJ): os$(OS)$(SLASH)osblock.c
218 $(OSCC) os$(OS)$(SLASH)osblock.c
219
220 osdir$(OBJ): os$(OS)$(SLASH)osdir.c
221 $(OSCC) os$(OS)$(SLASH)osdir.c
222
223 osprg$(OBJ): os$(OS)$(SLASH)osprg.c
224 $(OSCC) os$(OS)$(SLASH)osprg.c
225
226 ostext$(OBJ): os$(OS)$(SLASH)ostext.c
227 $(OSCC) os$(OS)$(SLASH)ostext.c
228
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
229 osnet$(OBJ): os$(OS)$(SLASH)osnet.c
230 $(OSCC) os$(OS)$(SLASH)osnet.c
231
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
232 tcaphelp$(OBJ): os$(OS)$(SLASH)tcaphelp.c
233 $(OSCC) os$(OS)$(SLASH)tcaphelp.c
234
235 ###############################################################################
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
236 # Rules for GUI-dependent files. Note that we can't really generalize here
237 # as well as we could for OS-dependent files, because different GUIs may be
238 # broken down differently.
239
240 guix11$(OBJ): guix11/guix11.c $(XBM)
241 $(OSCC) guix11/guix11.c
242
243 xclip$(OBJ): guix11/xclip.c
244 $(OSCC) guix11/xclip.c
245
246 xevent$(OBJ): guix11/xevent.c
247 $(OSCC) guix11/xevent.c
248
249 xmisc$(OBJ): guix11/xmisc.c
250 $(OSCC) guix11/xmisc.c
251
252 xscroll$(OBJ): guix11/xscroll.c
253 $(OSCC) guix11/xscroll.c
254
255 xstatus$(OBJ): guix11/xstatus.c
256 $(OSCC) guix11/xstatus.c
257
258 xtext$(OBJ): guix11/xtext.c
259 $(OSCC) guix11/xtext.c
260
261 xtool$(OBJ): guix11/xtool.c
262 $(OSCC) guix11/xtool.c
263
264 xdialog$(OBJ): guix11/xdialog.c
265 $(OSCC) guix11/xdialog.c
266
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
267 guignome$(OBJ): guignome/guignome.c
268 $(OSCC) guignome/guignome.c
269
270 guignome/elvisCorba-common.c: guignome/elvisCorba.idl
271 (cd guignome; orbit-idl elvisCorba.idl)
272
273 guignome/elvisCorba-skels.c: guignome/elvisCorba-common.c
274 guignome/elvisCorba-stubs.c: guignome/elvisCorba-common.c
275 guignome/elvisCorba.h: guignome/elvisCorba-common.c
276
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
277 ###############################################################################
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
278 # Handy commands
279
280 clean: clean.$(OS)
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
281 $(RM) $(ALL)
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
282
283 clean.unix:
284 $(RM) *$(OBJ)
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
285 $(RM) guignome/*$(OBJ) guignome/elvisCorba-* guignome/elvisCorba.h
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
286 $(RM) core
287 $(RM) errlist
288 $(RM) verify.elv
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
289 $(RM) gdk_imlib.h
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
290 $(RM) $(DISTRIB).tar.gz
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
291 $(RM) doc/elvtags.man
292 $(RM) elvis.rpm
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
293
294 clean.msdos:
295 $(RM) *$(OBJ)
296
297 clobber: clean
298 $(RM) $(EVERY)
299 $(RM) tags
300 $(RM) detail
301 $(RM) .elv*
302 $(RM) foo
303 $(RM) stderr
304
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
305 tmp:
306 $(RM) /var/tmp/elvis*.ses
307 $(RM) core
308
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
309 sure: verify
310 $(RM) verify.elv
311 verify >detail || gdb verify core
312
313 wc: $(SRCS) $(HDRS)
314 wc $(SRCS) $(HDRS) | sort -n
315
316 tags: $(SRCS) $(HDRS)
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
317 elvtags $(SRCS) $(HDRS)
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
318
319 ciall: $(SRCS) $(HDRS)
320 ci -u$(REV) Makefile $(SRCS) $(HDRS)
321
322 cinever:
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
323 @for i in *.[ch]; do [ -f RCS/$$i,v ] || echo $$i; done
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
324 @for i in os*/.; do (cd $$i; for j in *.[ch]; do [ -f $$j,v -o -f RCS/$$j,v ] || echo `dirname $$i`/$$j; done); done
325 @for i in gui*/.; do (cd $$i; for j in *.[ch]; do [ -f $$j,v -o -f RCS/$$j,v ] || echo `dirname $$i`/$$j; done); done
326
327 tarball:
328 rm -f $(DISTRIB).tar.gz
329 make $(DISTRIB).tar.gz
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
330
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
331 $(DISTRIB).tar.gz:
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
332 rm -rf $(DISTRIB)
333 mkdir $(DISTRIB)
334 for i in os*; do if [ -d $$i ]; then mkdir $(DISTRIB)/$$i; fi; done
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
335 for i in gui*; do if [ -d $$i ]; then mkdir $(DISTRIB)/$$i; fi; done
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
336 cp *.c *.h $(MISC) $(DISTRIB)
337 rm -f $(DISTRIB)/sample.c
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
338 mkdir $(DISTRIB)/data
339 cp data/*.* $(DISTRIB)/data/
340 for i in icons scripts stubs themes; do mkdir $(DISTRIB)/data/$$i; cp data/$$i/* $(DISTRIB)/data/$$i/; done
341 mkdir $(DISTRIB)/doc
342 cp doc/*.* $(DISTRIB)/doc
343 chmod +w $(DISTRIB)/doc/*
344 for i in doc/*.html; do sed 's/<title>Elvis[^ ]*/<title>Elvis-$(VERSION)/;s/ELVIS[^ <]*</ELVIS-$(VERSION)</' $$i >$(DISTRIB)/$$i; done
345 for i in doc/*.man; do sed 's/Elvis 2\.[0-9x][0-9a-z-]*/Elvis $(VERSION)/' $$i >$(DISTRIB)/$$i; done
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
346 for i in os*/*.c os*/*.h os*/*.mak os*/*.lib os*/*.ICO osos2/*.def osos2/*os2*; do cp $$i $(DISTRIB)/$$i; done
347 for i in gui*/*; do if [ -f $$i ]; then cp $$i $(DISTRIB)/$$i; fi; done
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
348 rm -f $(DISTRIB)/osunix/osconfig.h
349 rm -f $(DISTRIB)/config.h
350 rm -f $(DISTRIB)/Makefile
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
351 rm -f $(DISTRIB)/doc/elvtags.man
352 rm -f $(DISTRIB)/doc/elvfmt.man
353 find $(DISTRIB) -type f -exec chmod +w {} \;
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
354 tar czf $(DISTRIB).tar.gz $(DISTRIB)
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
355 rm -rf $(DISTRIB)
356
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
357 $(DISTRIB)-win32.tar.gz: $(WIN32EXE)
358 rm -rf bin-win32
359 mkdir bin-win32
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
360 cp $(WIN32EXE)/*.[eE][xX][eE] bin-win32
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
361 sed 's/$$/ /' <README.html >bin-win32/README.html
362 sed 's/$$/ /' <BUGS >bin-win32/BUGS
363 sed 's/$$/ /' <COPYING >bin-win32/COPYING
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
364 cp --recursive data bin-win32
365 cp --recursive doc bin-win32
366 chmod a+rw bin-win32/* bin-win32/*/* bin-win32/data/*/*
367 rm -rf bin-win32/data/RCS
368 rm -rf bin-win32/doc/RCS
369 showrgb | sed 's/ *\([0-9]\+\) *\([0-9]\+\) *\([0-9]\+\)[ ]\+\(.*\)/\1 \2 \3 \4/; s/ //g' | tr '[A-Z]' '[a-z]' | sort -u +3 >bin-win32/data/rgb.txt
370 for i in doc/*.html; do sed 's/<title>Elvis[^ ]*/<title>Elvis-$(VERSION)/;s/ELVIS[^ <]*</ELVIS-$(VERSION)</' $$i >bin-win32/$$i; done
371 for i in doc/*.man; do sed 's/Elvis 2\.[0-9x][0-9a-z-]*/Elvis $(VERSION)/' $$i >bin-win32/$$i; done
372 sed 's/$$/ /' <doc/printdoc.bat >bin-win32/doc/printdoc.bat
373 sed 's/$$/ /' <doc/license.html >bin-win32/doc/license.html
374 sed 's/$$/ /' </usr/share/dict/words >bin-win32/data/words
375 (cd bin-win32/data/icons; xpm2ico *.xpm)
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
376 (cd bin-win32; tar czf ../$(DISTRIB)-win32.tar.gz *)
377
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
378 $(DISTRIB)-msdos.tar.gz: $(DOSEXE)
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
379 rm -rf bin-msdos
380 mkdir bin-msdos
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
381 cp $(DOSEXE)/*.[eE][xX][eE] bin-msdos
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
382 sed 's/$$/ /' <README.html >bin-msdos/README.html
383 sed 's/$$/ /' <BUGS >bin-msdos/BUGS
384 sed 's/$$/ /' <COPYING >bin-msdos/COPYING
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
385 cp --recursive data bin-msdos
386 cp --recursive doc bin-msdos
387 chmod a+rw bin-msdos/* bin-msdos/*/* bin-msdos/data/*/*
388 rm -rf bin-msdos/data/RCS
389 rm -rf bin-msdos/doc/RCS
390 for i in doc/*.html; do sed 's/<title>Elvis[^ ]*/<title>Elvis-$(VERSION)/;s/ELVIS[^ <]*</ELVIS-$(VERSION)</' $$i >bin-msdos/$$i; done
391 for i in doc/*.man; do sed 's/Elvis 2\.[0-9x][0-9a-z-]*/Elvis $(VERSION)/' $$i >bin-msdos/$$i; done
392 sed 's/$$/ /' <doc/printdoc.bat >bin-msdos/doc/printdoc.bat
393 sed 's/$$/ /' <doc/license.html >bin-msdos/doc/license.html
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
394 (cd bin-msdos; tar czf ../$(DISTRIB)-msdos.tar.gz *)
395
396 $(DISTRIB)-os2.tar.gz: $(OS2EXE)
397 rm -rf bin-os2
398 mkdir bin-os2
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
399 cp $(OS2EXE)/*.[eE][xX][eE] bin-os2
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
400 sed 's/$$/ /' <README.html >bin-os2/README.html
401 sed 's/$$/ /' <BUGS >bin-os2/BUGS
402 sed 's/$$/ /' <COPYING >bin-os2/COPYING
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
403 cp --recursive data bin-os2
404 cp --recursive doc bin-os2
405 for i in doc/*.html; do sed 's/<title>Elvis[^ ]*/<title>Elvis-$(VERSION)/;s/ELVIS[^ <]*</ELVIS-$(VERSION)</' $$i >bin-os2/$$i; done
406 for i in doc/*.man; do sed 's/Elvis 2\.[0-9x][0-9a-z-]*/Elvis $(VERSION)/' $$i >bin-os2/$$i; done
407 sed 's/$$/ /' <doc/printdoc.bat >bin-os2/doc/printdoc.bat
408 sed 's/$$/ /' <doc/printdoc.bat >bin-os2/doc/printdoc.cmd
409 sed 's/$$/ /' <doc/license.html >bin-os2/doc/license.html
410 sed 's/$$/ /' </usr/dict/words >bin-os2/data/words
411 (cd bin-win32/data/icons; xpm2ico *.xpm)
412 cp osos2/elvis.INF bin-os2/data/
413 cp osos2/README.os2 bin-os2/doc/
414 chmod a-w bin-os2/data/* bin-os2/doc/*
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
415 (cd bin-os2; tar czf ../$(DISTRIB)-os2.tar.gz *)
416
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
417 doc$(SLASH)elvistrs.msg: $(SRCS)
418 sed -n '/%[cds]/d; s/\[[a-zA-Z]*\]//; s/\\\\/\\/g; s/.*msg(MSG_[A-Z]*, "\([^ "][^"]*\)".*/\1/p' *.c os*$(SLASH)*.c gui*$(SLASH)*.c | sort -u >doc$(SLASH)elvistrs.msg
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
419
420 ###############################################################################
421
422 install: install.$(OS)
423
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
424 install.unix: $(ALL) doc/elvtags.man
425 rm -f doc/*.bak
426 [ -d $(BINDIR) ] || mkdir $(BINDIR)
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
427 cp $(ALL) $(BINDIR)
428 (cd $(BINDIR); chmod 0755 $(ALL))
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
429 rm -rf $(DATADIR)
430 mkdir -p $(DATADIR)
431 cp data/*.* $(DATADIR)
432 for i in icons scripts stubs themes; do mkdir $(DATADIR)/$$i; cp data/$$i/* $(DATADIR)/$$i/; done
433 rm -rf $(DOCDIR)
434 mkdir -p $(DOCDIR)
435 cp doc/*.html $(DOCDIR)
436 cp doc/*.man $(DOCDIR)
437 cp doc/*.txt $(DOCDIR)
438 cp doc/elvistrs.msg $(DOCDIR)
439 cp doc/printdoc.bat $(DOCDIR)
440 find $(DATADIR) -type f -exec chmod 0644 {} \;
441 find $(DOCDIR) -type f -exec chmod 0644 {} \;
442 (cd doc; for i in *.html; do sed 's/<title>Elvis[^ ]*/<title>Elvis-$(VERSION)/;s/ELVIS[^ <]*</ELVIS-$(VERSION)</' $$i >$(DOCDIR)/$$i; done)
443 (cd doc; for i in *.man; do sed 's/Elvis 2\.[0-9x][0-9a-z-]*/Elvis $(VERSION)/' $$i >$(DOCDIR)/$$i; done)
444 -(cd $(DATADIR); $(BINDIR)/elvtags -gitv stubs/*.c || ctags stubs/*.c)
445 chmod 0755 $(DATADIR)/*/. $(DATADIR) $(DOCDIR)
446 sh instman.sh -p$(PREFIX) $(ALL)
447 -[ -d /etc/elvis ] || mkdir /etc/elvis
448 -chmod 0755 /etc/elvis/
449 -@ : >/etc/elvis/README && ( \
450 echo "This directory contains system-dependent versions of elvis' configuration" \
451 echo "files. The standard versions are available in $(DATADIR)" \
452 echo "To customize any of these configuration files for this system," \
453 echo "first copy the standard version of the file into /etc/elvis and" \
454 echo "then edit the copy. Leave the standard version unchanged." \
455 ) >>/etc/elvis/README
456 -chmod 0644 /etc/elvis/README
457 @echo "This directory contains the standard versions of elvis' configuration" >$(DATADIR)/README
458 @echo "files. DO NOT MODIFY THESE FILES! To perform host-specific customization," >>$(DATADIR)/README
459 @echo "copy files from this directory into /etc/elvis/, and then modify the copies." >>$(DATADIR)/README
460 @echo "To make user-specific changes, create a ~/.elvis/ directory (if it doesn't" >>$(DATADIR)/README
461 @echo "exist already) and copy files from this directory into ~/.elvis/ and then" >>$(DATADIR)/README
462 @echo "modify the copies. Any file that elvis finds in ~/.elvis/ or /etc/elvis/" >>$(DATADIR)/README
463 @echo "overrides the similarly named file in this directory." >>$(DATADIR)/README
464 chmod 0644 $(DATADIR)/README
465
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
466
467 ###############################################################################
468
469 uninstall: uninstall.$(OS)
470
471 uninstall.unix:
472 (cd $(BINDIR); $(RM) $(ALL))
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
473 rm -rf $(DATADIR)
474 rm -rf $(DOCDIR)
475 sh instman.sh -r -p$(PREFIX) $(ALL)
476
477 ###############################################################################
478
479 elvis.rpm: elvis.spec.in $(DISTRIB).tar.gz
480 @topdir=`rpm --showrc|sed -n 's/%{_usrsrc}/\/usr\/src/;s/^[-0-9]*: _topdir[ ]//p'`; \
481 test -d $$topdir || topdir=/usr/src/redhat; \
482 test -d $$topdir || topdir=/usr/src/packages; \
483 echo topdir=$$topdir; \
484 MANDIR=`sh instman.sh -d -p$(PREFIX)`; \
485 if test -d $$topdir; \
486 then \
487 sed "s/VERSION/$(VERSION)/;s,MANDIR,$$MANDIR,g" elvis.spec.in >$$topdir/SPECS/elvis.spec; \
488 cp $(DISTRIB).tar.gz $$topdir/SOURCES; \
489 origdir=`pwd`; \
490 cd $$topdir; \
491 rpm -bb SPECS/elvis.spec && cp $$topdir/RPMS/i386/elvis-$(VERSION)-*.rpm $$origdir/elvis.rpm; \
492 else \
493 echo "Can't find rpm's topdir"; \
494 exit 2; \
495 fi
Something went wrong with that request. Please try again.