Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 511 lines (431 sloc) 20.525 kb
cf92e3b Martin Dietze Import Elvis 2.0 (written by Steve Kirkendall)
authored
1 # Makefile.in
9f1c6f0 Martin Dietze Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
2 # $Id: Makefile.in,v 2.121 2003/10/21 02:31:00 steve Exp $
cf92e3b Martin Dietze 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 Martin Dietze 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 Martin Dietze 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 Martin Dietze 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 Martin Dietze 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".
9f1c6f0 Martin Dietze Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
74 ALL=elvis$(EXE) ref$(EXE) elvtags$(EXE) elvfmt$(EXE)
75
76 ################################################################################
77 # The installation directories are relative to this
78 PREFIX=/usr/local
cf92e3b Martin Dietze 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 Martin Dietze Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
82 BINDIR=$(PREFIX)/bin
cf92e3b Martin Dietze 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 Martin Dietze Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
88 DATADIR=$(PREFIX)/share/elvis
89 DOCDIR= $(PREFIX)/share/elvis/doc
cf92e3b Martin Dietze 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
9f1c6f0 Martin Dietze Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
110 VERSION=2.2_0
cf92e3b Martin Dietze Import Elvis 2.0 (written by Steve Kirkendall)
authored
111 MISC= BUGS README.html COPYING INSTALL Makefile.in configure instman.sh\
9f1c6f0 Martin Dietze 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 Martin Dietze 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 Martin Dietze 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 Martin Dietze Import Elvis 2.0 (written by Steve Kirkendall)
authored
118 OSOBJS2=tcaphelp$(OBJ)
119 OSHDRS= os$(OS)$(SLASH)osdef.h
8d1ac0c Martin Dietze 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 Martin Dietze 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 Martin Dietze 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 Martin Dietze Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
139 HDRS= $(OSHDRS) $(GUIHDRS) autocmd.h buffer.h buffer2.h calc.h color.h\
140 cut.h descr.h digraph.h display.h display2.h draw.h draw2.h elvis.h\
141 elvisio.h event.h ex.h gui.h gui2.h input.h lowbuf.h lp.h map.h\
142 mark.h message.h message2.h misc.h more.h move.h need.h operator.h\
143 opsys.h optglob.h options.h regexp.h region.h safe.h scan.h session.h\
144 spell.h state.h state2.h tag.h tagsrch.h tagelvis.h version.h vi.h\
145 vicmd.h window.h config.h
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 Martin Dietze Import Elvis 2.0 (written by Steve Kirkendall)
authored
153 OBJ1= $(OSOBJS) optglob$(OBJ) options$(OBJ) safe$(OBJ) session$(OBJ)
9f1c6f0 Martin Dietze 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 Martin Dietze Import Elvis 2.0 (written by Steve Kirkendall)
authored
164 OBJS= $(OBJ1) $(OBJ2) $(OBJ3)
8d1ac0c Martin Dietze 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 Martin Dietze 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 Martin Dietze Import Elvis 2.1 (written by Steve Kirkendall)
authored
170
9f1c6f0 Martin Dietze Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
171 DISTRIB=elvis-$(VERSION)
172 DOSEXE=exedos
8d1ac0c Martin Dietze Import Elvis 2.1 (written by Steve Kirkendall)
authored
173 WIN32EXE=exewin32
174 OS2EXE=exeos2
cf92e3b Martin Dietze 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 Martin Dietze Import Elvis 2.1 (written by Steve Kirkendall)
authored
183 ctags$(EXE): $(CTOBJS)
184 $(CC) $(CFLAGS) $(CTOBJS) -o ctags$(EXE)
cf92e3b Martin Dietze Import Elvis 2.0 (written by Steve Kirkendall)
authored
185
9f1c6f0 Martin Dietze 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 Martin Dietze Import Elvis 2.1_3 (written by Steve Kirkendall)
authored
189 elvtags$(EXE): ctags$(EXE)
190 $(CP) ctags$(EXE) elvtags$(EXE)
9f1c6f0 Martin Dietze 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 Martin Dietze Import Elvis 2.1 (written by Steve Kirkendall)
authored
196 ref$(EXE): $(REFOBJS)
197 $(CC) $(CFLAGS) $(REFOBJS) -o ref$(EXE)
cf92e3b Martin Dietze 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
202 verify$(EXE): $(HDRS) verify$(OBJ) $(OBJ1) $(OBJ2)
203 $(CC) $(CFLAGS) verify$(OBJ) $(OBJ1) $(OBJ2) -o verify$(EXE)
204
205 elvdump$(EXE): $(HDRS) elvdump$(OBJ) $(OBJ1)
206 $(CC) $(CFLAGS) elvdump$(OBJ) $(OBJ1) -o elvdump$(EXE)
207
208 calc: $(HDRS) calc.c
209 $(CC) $(CFLAGS) -DTRY calc.c -o calc
210
211 ###############################################################################
212 # Rules for os-dependent files
213
214 osblock$(OBJ): os$(OS)$(SLASH)osblock.c
215 $(OSCC) os$(OS)$(SLASH)osblock.c
216
217 osdir$(OBJ): os$(OS)$(SLASH)osdir.c
218 $(OSCC) os$(OS)$(SLASH)osdir.c
219
220 osprg$(OBJ): os$(OS)$(SLASH)osprg.c
221 $(OSCC) os$(OS)$(SLASH)osprg.c
222
223 ostext$(OBJ): os$(OS)$(SLASH)ostext.c
224 $(OSCC) os$(OS)$(SLASH)ostext.c
225
8d1ac0c Martin Dietze Import Elvis 2.1 (written by Steve Kirkendall)
authored
226 osnet$(OBJ): os$(OS)$(SLASH)osnet.c
227 $(OSCC) os$(OS)$(SLASH)osnet.c
228
cf92e3b Martin Dietze Import Elvis 2.0 (written by Steve Kirkendall)
authored
229 tcaphelp$(OBJ): os$(OS)$(SLASH)tcaphelp.c
230 $(OSCC) os$(OS)$(SLASH)tcaphelp.c
231
232 ###############################################################################
8d1ac0c Martin Dietze Import Elvis 2.1 (written by Steve Kirkendall)
authored
233 # Rules for GUI-dependent files. Note that we can't really generalize here
234 # as well as we could for OS-dependent files, because different GUIs may be
235 # broken down differently.
236
237 guix11$(OBJ): guix11/guix11.c $(XBM)
238 $(OSCC) guix11/guix11.c
239
240 xclip$(OBJ): guix11/xclip.c
241 $(OSCC) guix11/xclip.c
242
243 xevent$(OBJ): guix11/xevent.c
244 $(OSCC) guix11/xevent.c
245
246 xmisc$(OBJ): guix11/xmisc.c
247 $(OSCC) guix11/xmisc.c
248
249 xscroll$(OBJ): guix11/xscroll.c
250 $(OSCC) guix11/xscroll.c
251
252 xstatus$(OBJ): guix11/xstatus.c
253 $(OSCC) guix11/xstatus.c
254
255 xtext$(OBJ): guix11/xtext.c
256 $(OSCC) guix11/xtext.c
257
258 xtool$(OBJ): guix11/xtool.c
259 $(OSCC) guix11/xtool.c
260
261 xdialog$(OBJ): guix11/xdialog.c
262 $(OSCC) guix11/xdialog.c
263
9f1c6f0 Martin Dietze Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
264 guignome$(OBJ): guignome/guignome.c
265 $(OSCC) guignome/guignome.c
266
267 guignome/elvisCorba-common.c: guignome/elvisCorba.idl
268 (cd guignome; orbit-idl elvisCorba.idl)
269
270 guignome/elvisCorba-skels.c: guignome/elvisCorba-common.c
271 guignome/elvisCorba-stubs.c: guignome/elvisCorba-common.c
272 guignome/elvisCorba.h: guignome/elvisCorba-common.c
273
8d1ac0c Martin Dietze Import Elvis 2.1 (written by Steve Kirkendall)
authored
274 ###############################################################################
cf92e3b Martin Dietze Import Elvis 2.0 (written by Steve Kirkendall)
authored
275 # Handy commands
276
277 clean: clean.$(OS)
9f1c6f0 Martin Dietze Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
278 $(RM) $(ALL)
cf92e3b Martin Dietze Import Elvis 2.0 (written by Steve Kirkendall)
authored
279
280 clean.unix:
281 $(RM) *$(OBJ)
9f1c6f0 Martin Dietze Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
282 $(RM) guignome/*$(OBJ) guignome/elvisCorba-* guignome/elvisCorba.h
cf92e3b Martin Dietze Import Elvis 2.0 (written by Steve Kirkendall)
authored
283 $(RM) core
284 $(RM) errlist
285 $(RM) verify.elv
9f1c6f0 Martin Dietze Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
286 $(RM) gdk_imlib.h
8d1ac0c Martin Dietze Import Elvis 2.1 (written by Steve Kirkendall)
authored
287 $(RM) $(DISTRIB).tar.gz
9f1c6f0 Martin Dietze Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
288 $(RM) doc/elvtags.man
289 $(RM) elvis.rpm
cf92e3b Martin Dietze Import Elvis 2.0 (written by Steve Kirkendall)
authored
290
291 clean.msdos:
292 $(RM) *$(OBJ)
293
294 clobber: clean
295 $(RM) $(EVERY)
296 $(RM) tags
297 $(RM) detail
298 $(RM) .elv*
299 $(RM) foo
300 $(RM) stderr
301
8d1ac0c Martin Dietze Import Elvis 2.1 (written by Steve Kirkendall)
authored
302 tmp:
303 $(RM) /var/tmp/elvis*.ses
304 $(RM) core
305
cf92e3b Martin Dietze Import Elvis 2.0 (written by Steve Kirkendall)
authored
306 sure: verify
307 $(RM) verify.elv
308 verify >detail || gdb verify core
309
310 wc: $(SRCS) $(HDRS)
311 wc $(SRCS) $(HDRS) | sort -n
312
313 tags: $(SRCS) $(HDRS)
9f1c6f0 Martin Dietze Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
314 elvtags $(SRCS) $(HDRS)
cf92e3b Martin Dietze Import Elvis 2.0 (written by Steve Kirkendall)
authored
315
316 ciall: $(SRCS) $(HDRS)
317 ci -u$(REV) Makefile $(SRCS) $(HDRS)
318
319 cinever:
8d1ac0c Martin Dietze Import Elvis 2.1 (written by Steve Kirkendall)
authored
320 @for i in *.[ch]; do [ -f RCS/$$i,v ] || echo $$i; done
9f1c6f0 Martin Dietze Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
321 @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
322 @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
323
324 tarball:
325 rm -f $(DISTRIB).tar.gz
326 make $(DISTRIB).tar.gz
cf92e3b Martin Dietze Import Elvis 2.0 (written by Steve Kirkendall)
authored
327
8d1ac0c Martin Dietze Import Elvis 2.1 (written by Steve Kirkendall)
authored
328 $(DISTRIB).tar.gz:
cf92e3b Martin Dietze Import Elvis 2.0 (written by Steve Kirkendall)
authored
329 rm -rf $(DISTRIB)
330 mkdir $(DISTRIB)
331 for i in os*; do if [ -d $$i ]; then mkdir $(DISTRIB)/$$i; fi; done
8d1ac0c Martin Dietze Import Elvis 2.1 (written by Steve Kirkendall)
authored
332 for i in gui*; do if [ -d $$i ]; then mkdir $(DISTRIB)/$$i; fi; done
cf92e3b Martin Dietze Import Elvis 2.0 (written by Steve Kirkendall)
authored
333 cp *.c *.h $(MISC) $(DISTRIB)
334 rm -f $(DISTRIB)/sample.c
9f1c6f0 Martin Dietze Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
335 mkdir $(DISTRIB)/data
336 cp data/*.* $(DISTRIB)/data/
337 for i in icons scripts stubs themes; do mkdir $(DISTRIB)/data/$$i; cp data/$$i/* $(DISTRIB)/data/$$i/; done
338 mkdir $(DISTRIB)/doc
339 cp doc/*.* $(DISTRIB)/doc
340 chmod +w $(DISTRIB)/doc/*
341 for i in doc/*.html; do sed 's/<title>Elvis[^ ]*/<title>Elvis-$(VERSION)/;s/ELVIS[^ <]*</ELVIS-$(VERSION)</' $$i >$(DISTRIB)/$$i; done
342 for i in doc/*.man; do sed 's/Elvis 2\.[0-9x][0-9a-z-]*/Elvis $(VERSION)/' $$i >$(DISTRIB)/$$i; done
8d1ac0c Martin Dietze Import Elvis 2.1 (written by Steve Kirkendall)
authored
343 for i in os*/*.c os*/*.h os*/*.mak os*/*.lib os*/*.ICO osos2/*.def osos2/*os2*; do cp $$i $(DISTRIB)/$$i; done
344 for i in gui*/*; do if [ -f $$i ]; then cp $$i $(DISTRIB)/$$i; fi; done
cf92e3b Martin Dietze Import Elvis 2.0 (written by Steve Kirkendall)
authored
345 rm -f $(DISTRIB)/osunix/osconfig.h
346 rm -f $(DISTRIB)/config.h
347 rm -f $(DISTRIB)/Makefile
9f1c6f0 Martin Dietze Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
348 rm -f $(DISTRIB)/doc/elvtags.man
349 rm -f $(DISTRIB)/doc/elvfmt.man
350 find $(DISTRIB) -type f -exec chmod +w {} \;
8d1ac0c Martin Dietze Import Elvis 2.1 (written by Steve Kirkendall)
authored
351 tar czf $(DISTRIB).tar.gz $(DISTRIB)
cf92e3b Martin Dietze Import Elvis 2.0 (written by Steve Kirkendall)
authored
352 rm -rf $(DISTRIB)
353
8d1ac0c Martin Dietze Import Elvis 2.1 (written by Steve Kirkendall)
authored
354 $(DISTRIB)-win32.tar.gz: $(WIN32EXE)
355 rm -rf bin-win32
356 mkdir bin-win32
9f1c6f0 Martin Dietze Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
357 cp $(WIN32EXE)/*.[eE][xX][eE] bin-win32
8d1ac0c Martin Dietze Import Elvis 2.1 (written by Steve Kirkendall)
authored
358 sed 's/$$/ /' <README.html >bin-win32/README.html
359 sed 's/$$/ /' <BUGS >bin-win32/BUGS
360 sed 's/$$/ /' <COPYING >bin-win32/COPYING
9f1c6f0 Martin Dietze Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
361 cp --recursive data bin-win32
362 cp --recursive doc bin-win32
363 chmod a+rw bin-win32/* bin-win32/*/* bin-win32/data/*/*
364 rm -rf bin-win32/data/RCS
365 rm -rf bin-win32/doc/RCS
366 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
367 for i in doc/*.html; do sed 's/<title>Elvis[^ ]*/<title>Elvis-$(VERSION)/;s/ELVIS[^ <]*</ELVIS-$(VERSION)</' $$i >bin-win32/$$i; done
368 for i in doc/*.man; do sed 's/Elvis 2\.[0-9x][0-9a-z-]*/Elvis $(VERSION)/' $$i >bin-win32/$$i; done
369 sed 's/$$/ /' <doc/printdoc.bat >bin-win32/doc/printdoc.bat
370 sed 's/$$/ /' <doc/license.html >bin-win32/doc/license.html
371 sed 's/$$/ /' </usr/share/dict/words >bin-win32/data/words
372 (cd bin-win32/data/icons; xpm2ico *.xpm)
8d1ac0c Martin Dietze Import Elvis 2.1 (written by Steve Kirkendall)
authored
373 (cd bin-win32; tar czf ../$(DISTRIB)-win32.tar.gz *)
374
9f1c6f0 Martin Dietze Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
375 $(DISTRIB)-msdos.tar.gz: $(DOSEXE)
8d1ac0c Martin Dietze Import Elvis 2.1 (written by Steve Kirkendall)
authored
376 rm -rf bin-msdos
377 mkdir bin-msdos
9f1c6f0 Martin Dietze Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
378 cp $(DOSEXE)/*.[eE][xX][eE] bin-msdos
8d1ac0c Martin Dietze Import Elvis 2.1 (written by Steve Kirkendall)
authored
379 sed 's/$$/ /' <README.html >bin-msdos/README.html
380 sed 's/$$/ /' <BUGS >bin-msdos/BUGS
381 sed 's/$$/ /' <COPYING >bin-msdos/COPYING
9f1c6f0 Martin Dietze Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
382 cp --recursive data bin-msdos
383 cp --recursive doc bin-msdos
384 chmod a+rw bin-msdos/* bin-msdos/*/* bin-msdos/data/*/*
385 rm -rf bin-msdos/data/RCS
386 rm -rf bin-msdos/doc/RCS
387 for i in doc/*.html; do sed 's/<title>Elvis[^ ]*/<title>Elvis-$(VERSION)/;s/ELVIS[^ <]*</ELVIS-$(VERSION)</' $$i >bin-msdos/$$i; done
388 for i in doc/*.man; do sed 's/Elvis 2\.[0-9x][0-9a-z-]*/Elvis $(VERSION)/' $$i >bin-msdos/$$i; done
389 sed 's/$$/ /' <doc/printdoc.bat >bin-msdos/doc/printdoc.bat
390 sed 's/$$/ /' <doc/license.html >bin-msdos/doc/license.html
8d1ac0c Martin Dietze Import Elvis 2.1 (written by Steve Kirkendall)
authored
391 (cd bin-msdos; tar czf ../$(DISTRIB)-msdos.tar.gz *)
392
393 $(DISTRIB)-os2.tar.gz: $(OS2EXE)
394 rm -rf bin-os2
395 mkdir bin-os2
9f1c6f0 Martin Dietze Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
396 cp $(OS2EXE)/*.[eE][xX][eE] bin-os2
8d1ac0c Martin Dietze Import Elvis 2.1 (written by Steve Kirkendall)
authored
397 sed 's/$$/ /' <README.html >bin-os2/README.html
398 sed 's/$$/ /' <BUGS >bin-os2/BUGS
399 sed 's/$$/ /' <COPYING >bin-os2/COPYING
9f1c6f0 Martin Dietze Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
400 cp --recursive data bin-os2
401 cp --recursive doc bin-os2
402 for i in doc/*.html; do sed 's/<title>Elvis[^ ]*/<title>Elvis-$(VERSION)/;s/ELVIS[^ <]*</ELVIS-$(VERSION)</' $$i >bin-os2/$$i; done
403 for i in doc/*.man; do sed 's/Elvis 2\.[0-9x][0-9a-z-]*/Elvis $(VERSION)/' $$i >bin-os2/$$i; done
404 sed 's/$$/ /' <doc/printdoc.bat >bin-os2/doc/printdoc.bat
405 sed 's/$$/ /' <doc/printdoc.bat >bin-os2/doc/printdoc.cmd
406 sed 's/$$/ /' <doc/license.html >bin-os2/doc/license.html
407 sed 's/$$/ /' </usr/dict/words >bin-os2/data/words
408 (cd bin-win32/data/icons; xpm2ico *.xpm)
409 cp osos2/elvis.INF bin-os2/data/
410 cp osos2/README.os2 bin-os2/doc/
411 chmod a-w bin-os2/data/* bin-os2/doc/*
8d1ac0c Martin Dietze Import Elvis 2.1 (written by Steve Kirkendall)
authored
412 (cd bin-os2; tar czf ../$(DISTRIB)-os2.tar.gz *)
413
9f1c6f0 Martin Dietze Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
414 doc$(SLASH)elvistrs.msg: $(SRCS)
415 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 Martin Dietze Import Elvis 2.0 (written by Steve Kirkendall)
authored
416
417 ###############################################################################
418
419 install: install.$(OS)
420
9f1c6f0 Martin Dietze Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
421 install.unix: $(ALL) doc/elvtags.man
422 rm -f doc/*.bak
423 [ -d $(BINDIR) ] || mkdir $(BINDIR)
cf92e3b Martin Dietze Import Elvis 2.0 (written by Steve Kirkendall)
authored
424 cp $(ALL) $(BINDIR)
425 (cd $(BINDIR); chmod 0755 $(ALL))
9f1c6f0 Martin Dietze Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
426 rm -rf $(DATADIR)
427 mkdir -p $(DATADIR)
428 cp data/*.* $(DATADIR)
429 for i in icons scripts stubs themes; do mkdir $(DATADIR)/$$i; cp data/$$i/* $(DATADIR)/$$i/; done
430 rm -rf $(DOCDIR)
431 mkdir -p $(DOCDIR)
432 cp doc/*.html $(DOCDIR)
433 cp doc/*.man $(DOCDIR)
434 cp doc/*.txt $(DOCDIR)
435 cp doc/elvistrs.msg $(DOCDIR)
436 cp doc/printdoc.bat $(DOCDIR)
437 find $(DATADIR) -type f -exec chmod 0644 {} \;
438 find $(DOCDIR) -type f -exec chmod 0644 {} \;
439 (cd doc; for i in *.html; do sed 's/<title>Elvis[^ ]*/<title>Elvis-$(VERSION)/;s/ELVIS[^ <]*</ELVIS-$(VERSION)</' $$i >$(DOCDIR)/$$i; done)
440 (cd doc; for i in *.man; do sed 's/Elvis 2\.[0-9x][0-9a-z-]*/Elvis $(VERSION)/' $$i >$(DOCDIR)/$$i; done)
441 -(cd $(DATADIR); $(BINDIR)/elvtags -gitv stubs/*.c || ctags stubs/*.c)
442 chmod 0755 $(DATADIR)/*/. $(DATADIR) $(DOCDIR)
443 sh instman.sh -p$(PREFIX) $(ALL)
444 -[ -d /etc/elvis ] || mkdir /etc/elvis
445 -chmod 0755 /etc/elvis/
446 -@ : >/etc/elvis/README && ( \
447 echo "This directory contains system-dependent versions of elvis' configuration" \
448 echo "files. The standard versions are available in $(DATADIR)" \
449 echo "To customize any of these configuration files for this system," \
450 echo "first copy the standard version of the file into /etc/elvis and" \
451 echo "then edit the copy. Leave the standard version unchanged." \
452 ) >>/etc/elvis/README
453 -chmod 0644 /etc/elvis/README
454 @echo "This directory contains the standard versions of elvis' configuration" >$(DATADIR)/README
455 @echo "files. DO NOT MODIFY THESE FILES! To perform host-specific customization," >>$(DATADIR)/README
456 @echo "copy files from this directory into /etc/elvis/, and then modify the copies." >>$(DATADIR)/README
457 @echo "To make user-specific changes, create a ~/.elvis/ directory (if it doesn't" >>$(DATADIR)/README
458 @echo "exist already) and copy files from this directory into ~/.elvis/ and then" >>$(DATADIR)/README
459 @echo "modify the copies. Any file that elvis finds in ~/.elvis/ or /etc/elvis/" >>$(DATADIR)/README
460 @echo "overrides the similarly named file in this directory." >>$(DATADIR)/README
461 chmod 0644 $(DATADIR)/README
462
cf92e3b Martin Dietze Import Elvis 2.0 (written by Steve Kirkendall)
authored
463
464 ###############################################################################
465
466 uninstall: uninstall.$(OS)
467
468 uninstall.unix:
469 (cd $(BINDIR); $(RM) $(ALL))
9f1c6f0 Martin Dietze Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
470 rm -rf $(DATADIR)
471 rm -rf $(DOCDIR)
472 sh instman.sh -r -p$(PREFIX) $(ALL)
473
474 ###############################################################################
475
476 elvis.rpm: elvis.spec.in $(DISTRIB).tar.gz
477 @topdir=`rpm --showrc|sed -n 's/%{_usrsrc}/\/usr\/src/;s/^[-0-9]*: _topdir[ ]//p'`; \
478 test -d $$topdir || topdir=/usr/src/redhat; \
479 test -d $$topdir || topdir=/usr/src/packages; \
480 echo topdir=$$topdir; \
481 MANDIR=`sh instman.sh -d -p$(PREFIX)`; \
482 if test -d $$topdir; \
483 then \
484 sed "s/VERSION/$(VERSION)/;s,MANDIR,$$MANDIR,g" elvis.spec.in >$$topdir/SPECS/elvis.spec; \
485 cp $(DISTRIB).tar.gz $$topdir/SOURCES; \
486 origdir=`pwd`; \
487 cd $$topdir; \
488 rpm -bb SPECS/elvis.spec && cp $$topdir/RPMS/i386/elvis-$(VERSION)-*.rpm $$origdir/elvis.rpm; \
489 else \
490 echo "Can't find rpm's topdir"; \
491 exit 2; \
492 fi
Something went wrong with that request. Please try again.