-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
568 lines (451 loc) · 21 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
#########################################################################
# #
# GALAX #
# XQuery Engine #
# #
# Copyright 2001-2007. #
# Distributed only by permission. #
# #
#########################################################################
# $Id: Makefile,v 1.354 2008/02/21 21:41:21 simeon Exp $ #
#########################################################################
# Section: Default target
# Description:
# The default target for this Makefile is "all"
#########################################################################
default: all
#########################################################################
# Section: Makefile pre-includes
# Description:
# This is where the file(s) generated during by the Configure script
# are included. If config/Makefile.conf does not exist, the
# make will fail.
#
# Makefile.galax: Variables defined for compiling and linking Galax
# applications in the build environment
#########################################################################
LOCALPREFIX=.
include $(LOCALPREFIX)/config/Makefile.galax
GALAX_LIB_TARGETS=$(GALAX_LIB)
ifdef OCAMLOPT
GALAX_LIB_TARGETS+=$(GALAX_OPTLIB)
endif
# Galax top-level apps
TARGETNAME1=glx
TARGET1=$(TARGETNAME1)$(EXE)
OPTTARGET1=$(TARGETNAME1)$(OPT)
BYTETARGET1=$(TARGETNAME1)$(BYTE)
OPTPROFTARGET1=$(TARGETNAME1).optprof
TARGETOBJS1=toplevel/glx_main.cmo
TARGETNAME2=glx-map
TARGET2=$(TARGETNAME2)$(EXE)
OPTTARGET2=$(TARGETNAME2)$(OPT)
BYTETARGET2=$(TARGETNAME2)$(BYTE)
OPTPROFTARGET2=$(TARGETNAME2).optprof
TARGETOBJS2=toplevel/glx_map_main.cmo
TARGETNAME3=glx-test
TARGET3=$(TARGETNAME3)$(EXE)
OPTTARGET3=$(TARGETNAME3)$(OPT)
BYTETARGET3=$(TARGETNAME3)$(BYTE)
TARGETOBJS3= regress/glx_test_main.cmo
TARGETNAME4=glxd
TARGET4=$(TARGETNAME4)$(EXE)
OPTTARGET4=$(TARGETNAME4)$(OPT)
BYTETARGET4=$(TARGETNAME4)$(BYTE)
TARGETOBJS4=toplevel/$(TARGETNAME4)_main.cmo
TARGETNAME5=webgui
TARGET5=$(TARGETNAME5)$(EXE)
OPTTARGET5=$(TARGETNAME5)$(OPT)
BYTETARGET5=$(TARGETNAME5)$(BYTE)
TARGETOBJS5=toplevel/$(TARGETNAME5).cmo
TARGETNAME6=zerod
TARGET6=$(TARGETNAME6)$(EXE)
OPTTARGET6=$(TARGETNAME6)$(OPT)
BYTETARGET6=$(TARGETNAME6)$(BYTE)
TARGETOBJS6= toplevel/$(TARGETNAME6).cmo
GALAX_ALL_LNCOMMANDS=\
$(TARGETNAME1) \
$(TARGETNAME2) \
$(TARGETNAME3) \
$(TARGETNAME4) \
$(TARGETNAME5) \
$(TARGETNAME6)
GALAX_BYTE_COMMANDS=\
$(BYTETARGET1) \
$(BYTETARGET2) \
$(BYTETARGET3) \
$(BYTETARGET4) \
$(BYTETARGET5) \
$(BYTETARGET6) \
ocaml-galax$(EXE)
GALAX_ALL_COMMANDS=$(GALAX_BYTE_COMMANDS)
GALAX_ALL_COMMAND_OBJS=\
$(TARGETOBJS1) \
$(TARGETOBJS2) \
$(TARGETOBJS3) \
$(TARGETOBJS4) \
$(TARGETOBJS5) \
$(TARGETOBJS6)
ifdef OCAMLOPT
GALAX_ALL_COMMANDS+=\
$(OPTTARGET1) \
$(OPTTARGET2) \
$(OPTTARGET3) \
$(OPTTARGET4) \
$(OPTTARGET5) \
$(OPTTARGET6)
endif
#########################################################################
# Section: Main targets
# Description:
# This is where all of the named toplevel targets are placed.
#
# world: Force updating of .depend files and make all
# all: This target builds the bytecode versions of Galax
# install:: This target does installation for files in the main section
# uninstall:: This target uninstalls files installed in the main section
# clean:: This target cleans files created in the all section
# clobber:: This target cleans files created in the all section and .depend
#
#########################################################################
world:
$(MAKE) all DEPDEPEND=1
byteworld:
$(MAKE) byte DEPDEPEND=1
all: lib subcomponents lncommands
byte: bytelib bytesubcomponents bytecommands
regression: $(TARGET3)
(cd regress; $(MAKE) tests)
buildbot-regression: $(TARGET3)
(cd regress; $(MAKE) -s buildbot-diff)
buildbot-fast-regression: $(TARGET1)
(cd usecases; $(MAKE) -s buildbot-diff)
install:: all $(CONF_GALAX_CONFIG) $(CONF_GALAX_MAN)
$(CP) config/Makefile.conf $(CONF_GALAX_CONFIG)
$(SED) -e "s:CONF_GALAX_CONFIG:$(CONF_GALAX_CONFIG):" config/Makefile.galax-inst > $(CONF_GALAX_CONFIG)/Makefile.galax
$(CP) LICENSE $(CONF_GALAX_MAN)
$(CP) README $(CONF_GALAX_MAN)
uninstall::
$(RM) $(CONF_GALAX_CONFIG)/Makefile.conf
$(RM) $(CONF_GALAX_CONFIG)/Makefile.galax
$(RM) $(CONF_GALAX_MAN)/LICENSE
$(RM) $(CONF_GALAX_MAN)/README
realclean:
$(MAKE) clean
$(RM) $(LOCALPREFIX)/.depend
$(RM) $(LOCALPREFIX)/config/Makefile.conf
$(RM) $(LOCALPREFIX)/regress/testconfig.xml
clean::
$(RM) $(LOCALPREFIX)/c_api/.depend
$(RM) $(LOCALPREFIX)/galapi/c_api/.depend
package-source: clean $(CONF_PACKAGE_DIR)/$(RELEASE)
$(RM) .depend
$(RM) $(CONF_PACKAGE_DIR)/$(RELEASE)/galax-$(RELEASE).tar*
cd ..; $(ZIP) $(CONF_PACKAGE_DIR)/$(RELEASE)/galax-$(RELEASE)$(ZIPEXT) $(ZIPOPT) $(notdir $(CONF_PACKAGE_SRC))
$(CONF_PACKAGE_DIR)/$(RELEASE):
$(MKDIR) $(CONF_PACKAGE_DIR)/$(RELEASE)
#########################################################################
# Sub-Section: Secondary targets
# Description:
# These are the targets listed as dependencies of "all". They each
# have their own install, uninstall, and clean targets.
#
# lib: Standard Galax libraries
# subcomponents: Galax libraries, commands, etc. with their own builds
# commands: oplevel Galax commands
#########################################################################
#########################################################################
# Sub-Sub-Section: lib
# Description:
# These are the targets for building libraries, installing them
# uninstalling them, and cleaning them.
#
# lib: Builds the library targets (static and optional shared)
# install:Installs the library targets (static and optional shared)
# uninstall:Uninstalls the library targets (static and optional shared)
# clean: Cleans up the files used to create the libraries that
# are created by automatic rules
#########################################################################
lib: $(GALAX_LIB_TARGETS)
bytelib: $(GALAX_LIB)
install:: lib $(CONF_GALAX_OCAMLLIB)
for i in $(GALAX_LIB_TARGETS); do ($(CP) $$i $(CONF_GALAX_OCAMLLIB)); done
cp META $(CONF_GALAX_OCAMLLIB)
if test -f $(GALAX_CLIB); then ($(CP) $(GALAX_CLIB) $(CONF_GALAX_OCAMLLIB); $(RANLIB) $(CONF_GALAX_OCAMLLIB)/$(GALAX_CLIB)); fi
uninstall::
for i in $(GALAX_LIB_TARGETS); do ($(RM) $(CONF_GALAX_OCAMLLIB)/$$i); done
$(RM) $(CONF_GALAX_OCAMLLIB)/$(GALAX_CLIB)
clean::
$(RM) $(GALAX_LIB) $(GALAX_OPTLIB)
$(RM) *.o *.a */*.o */*/*.o
$(RM) *.cmi */*.cmi */*/*.cmi
$(RM) *.cmo */*.cmo */*/*.cmo
$(RM) *.cmx */*.cmx */*/*.cmx
# Individual library targets
#
$(GALAX_LIB): $(GALAX_ALL_OBJECTS) $(GALAX_CMIFILES)
$(OCAMLC) -a -linkall -o $(GALAX_LIB) $(GALAX_ALL_OBJECTS) $(OCAMLC_FLAGS) $(GALAX_ALL_INCLUDES)
$(GALAX_OPTLIB): $(GALAX_ALL_OPTOBJECTS) $(GALAX_CMIFILES)
$(OCAMLOPT) -a -linkall -o $(GALAX_OPTLIB) $(GALAX_ALL_OPTOBJECTS) $(OCAMLOPT_FLAGS) $(GALAX_ALL_INCLUDES)
#########################################################################
# Sub-Sub-Section: subcomponents
# Description:
# These are the targets for building any sub-component libraries
# or applications.
#
# subcomponents: Builds the sub targets
# install: Installs the sub targets
# uninstall: Uninstalls the sub targets
# clean: Cleans up the sub targets
#########################################################################
subcomponents: lib
for i in $(GALAX_ALL_SUBCOMPONENTS); do (if test -d $$i; then (cd $$i ; $(MAKE) all); fi); done
bytesubcomponents: bytelib
for i in $(GALAX_ALL_SUBCOMPONENTS); do (if test -d $$i; then (cd $$i ; $(MAKE) byte); fi); done
install:: subcomponents
for i in $(GALAX_ALL_SUBCOMPONENTS); do (if test -d $$i; then (cd $$i ; $(MAKE) install); fi); done
uninstall::
for i in $(GALAX_ALL_SUBCOMPONENTS); do (if test -d $$i; then (cd $$i ; $(MAKE) uninstall); fi); done
clean::
for i in $(GALAX_ALL_SUBCOMPONENTS); do (if test -d $$i; then (cd $$i ; $(MAKE) clean); fi); done
clobber::
for i in $(GALAX_ALL_SUBCOMPONENTS); do (if test -d $$i; then (cd $$i ; $(MAKE) clobber); fi); done
#########################################################################
# Sub-Sub-Section: commands
# Description:
# These are the targets for building the toplevel applications
#
# commands: Builds the byte and opt command targets
# install: Installs the command targets
# uninstall: Uninstalls the command targets
# clean: Clean is delegated to each of the actual commands
#########################################################################
commands: lib subcomponents $(GALAX_ALL_COMMANDS)
bytecommands: bytelib bytesubcomponents $(GALAX_BYTE_COMMANDS)
lncommands: commands
for i in $(GALAX_ALL_LNCOMMANDS); do ($(RM) $(LOCALPREFIX)/$${i}$(EXE)); (if test -f $(LOCALPREFIX)/$${i}$(OPT); then $(LN) $(LOCALPREFIX)/$${i}$(OPT) $(LOCALPREFIX)/$${i}$(EXE); else $(LN) $(LOCALPREFIX)/$${i}$(BYTE) $(LOCALPREFIX)/$${i}$(EXE); fi); done
clean::
for i in $(GALAX_ALL_LNCOMMANDS); do ($(RM) $(LOCALPREFIX)/$${i}$(EXE)); done
install:: commands $(CONF_GALAX_BIN)
for i in $(GALAX_ALL_COMMANDS); do ($(CP) $$i $(CONF_GALAX_BIN)); done
for i in $(GALAX_ALL_LNCOMMANDS); do ($(RM) $(CONF_GALAX_BIN)/$${i}$(EXE)); (if test -f $(CONF_GALAX_BIN)/$${i}$(OPT); then $(LN) $(CONF_GALAX_BIN)/$${i}$(OPT) $(CONF_GALAX_BIN)/$${i}$(EXE); else $(LN) $(CONF_GALAX_BIN)/$${i}$(BYTE) $(CONF_GALAX_BIN)/$${i}$(EXE); fi); done
uninstall::
for i in $(GALAX_ALL_COMMANDS); do ($(RM) $(CONF_GALAX_BIN)/$$i); done
for i in $(GALAX_ALL_LNCOMMANDS); do ($(RM) $(CONF_GALAX_BIN)/$${i}$(EXE)); done
clean::
$(RM) $(GALAX_ALL_COMMANDS) $(GALAX_ALL_COMMAND_OBJS) $(GALAX_ALL_COMMAND_OBJS:.cmo=.cmx)
# Individual command targets
#
$(BYTETARGET1): $(GALAX_LIB) $(TARGETOBJS1)
$(OCAMLC) -custom -linkall -o $@ $(OCAMLC_FLAGS) $(GALAX_ALL_INCLUDES) $(GALAX_ALL_LIBS) $(TARGETOBJS1)
$(BYTETARGET2): $(GALAX_LIB) $(TARGETOBJS2)
$(OCAMLC) -custom -linkall -o $@ $(OCAMLC_FLAGS) $(GALAX_ALL_INCLUDES) $(GALAX_ALL_LIBS) $(TARGETOBJS2)
$(BYTETARGET3): $(GALAX_LIB) $(TARGETOBJS3)
$(OCAMLC) -custom -linkall -o $@ $(OCAMLC_FLAGS) $(GALAX_ALL_INCLUDES) $(GALAX_ALL_LIBS) $(GALAX_TESTING) $(TARGETOBJS3)
toplevel/$(TARGETNAME4)_main.cmo: toplevel/$(TARGETNAME4)_main.ml
$(OCAMLC) -thread $(OCAMLC_FLAGS) $(GALAX_ALL_INCLUDES) -c $<
$(BYTETARGET4): $(GALAX_LIB) $(TARGETOBJS4)
$(OCAMLC) -thread -custom -linkall -o $(BYTETARGET4) $(OCAMLC_FLAGS) $(GALAX_ALL_INCLUDES) $(GALAXD_ALL_LIBS) $(TARGETOBJS4)
toplevel/$(TARGETNAME5).cmo: toplevel/$(TARGETNAME5).ml
$(OCAMLC) -thread $(OCAMLC_FLAGS) $(GALAX_ALL_INCLUDES) -c $<
# YUCK: Webgui links in Galax.cmxa just for pretty printing
$(BYTETARGET5): $(GALAX_LIB) $(TARGETOBJS5)
$(OCAMLC) -thread -linkall -o $@ $(OCAMLC_FLAGS) $(GALAX_ALL_INCLUDES) $(GALAXD_ALL_LIBS) $(TARGETOBJS5)
toplevel/$(TARGETNAME6).cmo: toplevel/$(TARGETNAME6).ml
$(OCAMLC) -thread $(OCAMLC_FLAGS) $(GALAX_ALL_INCLUDES) -c $<
$(BYTETARGET6): $(GALAX_LIB) $(TARGETOBJS6)
$(OCAMLC) -thread -linkall -o $@ $(OCAMLC_FLAGS) $(GALAX_ALL_INCLUDES) $(GALAXD_ALL_LIBS) $(TARGETOBJS6)
$(OPTTARGET1): $(GALAX_OPTLIB) $(TARGETOBJS1:.cmo=.cmx)
$(OCAMLOPT) -linkall -o $@ $(OCAMLOPT_FLAGS) $(GALAX_ALL_INCLUDES) $(GALAX_ALL_OPTLIBS) $(TARGETOBJS1:.cmo=.cmx)
$(OPTTARGET2): $(GALAX_OPTLIB) $(TARGETOBJS2:.cmo=.cmx)
$(OCAMLOPT) -linkall -o $@ $(OCAMLOPT_FLAGS) $(GALAX_ALL_INCLUDES) $(GALAX_ALL_OPTLIBS) $(TARGETOBJS2:.cmo=.cmx)
$(OPTTARGET3): $(GALAX_OPTLIB) $(TARGETOBJS3:.cmo=.cmx)
$(OCAMLOPT) -linkall -o $@ $(OCAMLOPT_FLAGS) $(GALAX_ALL_INCLUDES) $(GALAX_ALL_OPTLIBS) $(GALAX_TESTING_OPTOBJECTS) $(TARGETOBJS3:.cmo=.cmx)
toplevel/$(TARGETNAME4)_main.cmx: toplevel/$(TARGETNAME4)_main.ml
$(OCAMLOPT) -thread $(OCAMLOPT_FLAGS) $(GALAX_ALL_INCLUDES) -c $<
$(OPTTARGET4): $(GALAX_OPTLIB) $(TARGETOBJS4:.cmo=.cmx)
$(OCAMLOPT) -thread -linkall -o $(OPTTARGET4) $(OCAMLOPT_FLAGS) $(GALAX_ALL_INCLUDES) $(GALAXD_ALL_OPTLIBS) $(TARGETOBJS4:.cmo=.cmx)
toplevel/$(TARGETNAME5).cmx: toplevel/$(TARGETNAME5).ml
$(OCAMLOPT) -thread $(OCAMLOPT_FLAGS) $(GALAX_ALL_INCLUDES) -c $<
$(OPTTARGET5): $(GALAX_OPTLIB) $(TARGETOBJS5:.cmo=.cmx)
$(OCAMLOPT) -thread -linkall -o $(OPTTARGET5) $(OCAMLOPT_FLAGS) $(GALAX_ALL_INCLUDES) $(GALAXD_ALL_OPTLIBS) $(TARGETOBJS5:.cmo=.cmx)
toplevel/$(TARGETNAME6).cmx: toplevel/$(TARGETNAME6).ml
$(OCAMLOPT) -thread $(OCAMLOPT_FLAGS) $(GALAX_ALL_INCLUDES) -c $<
$(OPTTARGET6): $(GALAX_OPTLIB) $(TARGETOBJS6:.cmo=.cmx)
$(OCAMLOPT) -thread -linkall -o $(OPTTARGET6) $(OCAMLOPT_FLAGS) $(GALAX_ALL_INCLUDES) $(GALAXD_ALL_OPTLIBS) $(TARGETOBJS6:.cmo=.cmx)
ocaml-galax$(EXE): $(GALAX_LIB)
$(OCAMLMKTOP) -custom -linkall -o $@ $(GALAX_ALL_INCLUDES) $(GALAX_ALL_LIBS)
#########################################################################
# Sub-Sub-Section: Source files
# Description:
# These are the targets for creating source files
#
# base/pervasive.xq: required to build
# base/pervasive.ml and for install
# base/pervasive.ml: required for libraries
# base/conf.ml: required for libraries
# namespace/qname_lexer_utf8.ml: required for UTF8 libraries
# lexer/opening_tag_lexer_utf8.ml: required for UTF8 libraries
# lexer/closing_tag_lexer_utf8.ml: required for UTF8 libraries
# lexer/text_tag_lexer_utf8.ml: required for UTF8 libraries
# namespace/qname_lexer_iso88591.ml: required for ISO88591 libraries
# lexer/opening_tag_lexer_iso88591.ml: required for ISO88591 libraries
# lexer/closing_tag_lexer_iso88591.ml: required for ISO88591 libraries
# lexer/text_tag_lexer_iso88591.ml: required for ISO88591 libraries
# schema/schema_import.ml: required for libraries
# parsing/parse_query.ml[i]: required for libraries
# toplevel/top_server.ml: required for threaded/non-threaded server
#
# clean:: removes created source files, including mll-generated
# ml files
# install:: installs base/pervasive.xq
# uninstall:: removes base/pervasive.xq
#########################################################################
# Source code generation
#
base/pervasive.xq: stdlib/pervasive.xq
$(CP) stdlib/pervasive.xq base/pervasive.xq
base/pervasive.ml: tools/escaping/escaping$(EXE) base/pervasive.xq
tools/escaping/escaping$(EXE) base/pervasive.xq
base/conf.ml: base/conf.mlp
@$(RM) base/conf.ml
$(SED) -e 's|%%RELEASE%%|$(RELEASE)|' \
-e 's|%%STATUS%%|$(STATUS)|' \
-e 's|%%LIBDIR%%|$(CONF_GALAX_LIB)|' \
-e 's|%%XMLURI%%|$(XMLURI)|' \
-e 's|%%XMLNSURI%%|$(XMLNSURI)|' \
-e 's|%%XSURI%%|$(XSURI)|' \
-e 's|%%XSDURI%%|$(XSDURI)|' \
-e 's|%%XSIURI%%|$(XSIURI)|' \
-e 's|%%FNURI%%|$(FNURI)|' \
-e 's|%%XQUERYXURI%%|$(XQUERYXURI)|' \
-e 's|%%OPURI%%|$(OPURI)|' \
-e 's|%%FSURI%%|$(FSURI)|' \
-e 's|%%COLLURI%%|$(COLLURI)|' \
-e 's|%%ERRURI%%|$(XQTURI)|' \
-e 's|%%LOCALURI%%|$(LOCALURI)|' \
-e 's|%%GLXURI%%|$(GLXURI)|' \
base/conf.mlp > base/conf.ml
base/galax_camomile.ml: base/galax_camomile_$(CONF_CAMOMILEVERSION).ml
$(CP) base/galax_camomile_$(CONF_CAMOMILEVERSION).ml base/galax_camomile.ml
namespace/qname_lexer_utf8.mll: tools/insert_variant namespace/pxp_lex_defs_utf8.def namespace/qname_lexer.src
cd namespace; $(OCAML) ../tools/insert_variant -variant utf8 qname_lexer.src
lexing/opening_tag_lexer_utf8.mll: lexing/pxp_lex_defs_utf8.def tools/insert_variant lexing/opening_tag_lexer.src
cd lexing ; $(OCAML) ../tools/insert_variant -variant utf8 opening_tag_lexer.src
lexing/closing_tag_lexer_utf8.mll: lexing/pxp_lex_defs_utf8.def tools/insert_variant lexing/closing_tag_lexer.src
cd lexing ; $(OCAML) ../tools/insert_variant -variant utf8 closing_tag_lexer.src
lexing/text_lexer_utf8.mll: lexing/pxp_lex_defs_utf8.def tools/insert_variant lexing/text_lexer.src
cd lexing ; $(OCAML) ../tools/insert_variant -variant utf8 text_lexer.src
namespace/qname_lexer_iso88591.mll: tools/insert_variant namespace/pxp_lex_defs_iso88591.def namespace/qname_lexer.src
cd namespace; $(OCAML) ../tools/insert_variant -variant iso88591 qname_lexer.src
lexing/opening_tag_lexer_iso88591.mll: lexing/pxp_lex_defs_iso88591.def tools/insert_variant lexing/opening_tag_lexer.src
cd lexing ; $(OCAML) ../tools/insert_variant -variant iso88591 opening_tag_lexer.src
lexing/closing_tag_lexer_iso88591.mll: lexing/pxp_lex_defs_iso88591.def tools/insert_variant lexing/closing_tag_lexer.src
cd lexing ; $(OCAML) ../tools/insert_variant -variant iso88591 closing_tag_lexer.src
lexing/text_lexer_iso88591.mll: lexing/pxp_lex_defs_iso88591.def tools/insert_variant lexing/text_lexer.src
cd lexing ; $(OCAML) ../tools/insert_variant -variant iso88591 text_lexer.src
schema/schema_import.ml: schema/schema_import.mlp
$(CAMLP4O) -printer OCaml -impl schema/schema_import.mlp > $@
wsdl/wsdl_load.ml: wsdl/wsdl_load.mlp
$(CAMLP4O) -printer OCaml -impl wsdl/wsdl_load.mlp > $@
parsing/parse_xquery.ml parsing/parse_xquery.mli: parsing/parse_xquery.mly
$(OCAMLYACC) -v parsing/parse_xquery.mly
install:: base/pervasive.xq $(CONF_GALAX_LIB)
$(CP) base/pervasive.xq $(CONF_GALAX_LIB)
uninstall::
$(RM) $(CONF_GALAX_LIB)/pervasive.xq
clean::
$(RM) $(GALAX_MLLFILES:.mll=.ml)
$(RM) $(GALAX_CMIFILES)
$(RM) base/pervasive.xq
$(RM) base/pervasive.ml
$(RM) base/conf.ml
$(RM) base/galax_camomile.ml
$(RM) namespace/qname_lexer_utf8.mll
$(RM) lexing/opening_tag_lexer_utf8.mll
$(RM) lexing/closing_tag_lexer_utf8.mll
$(RM) lexing/text_lexer_utf8.mll
$(RM) namespace/qname_lexer_iso88591.mll
$(RM) lexing/opening_tag_lexer_iso88591.mll
$(RM) lexing/closing_tag_lexer_iso88591.mll
$(RM) lexing/text_lexer_iso88591.mll
$(RM) schema/schema_import.ml
$(RM) toplevel/top_server.ml
$(RM) parsing/parse_xquery.ml parsing/parse_xquery.mli parsing/parse_xquery.output
$(RM) wsdl/wsdl_load.ml
#########################################################################
# Sub-Sub-Sub-Section: Source files
# Description:
# These are the targets for creating source files dependents
#
# namespace/pxp_lex_defs_utf8.def:required for namespace/qname_lexer_utf8.ml
# lexing/pxp_lex_defs_utf8.def: required for lexing/*_utf8.ml
# tools/charsets/pxp_lex_defs_utf8.def:required for lexing/pxp_lex_defs_utf8.def
# clean:: removes created source files
# install:: installs base/pervasive.xq
# uninstall:: removes base/pervasive.xq
#########################################################################
namespace/pxp_lex_defs_utf8.def: tools/charsets/pxp_lex_defs_utf8.def
cd namespace; $(LN) ../tools/charsets/pxp_lex_defs_utf8.def pxp_lex_defs_utf8.def
lexing/pxp_lex_defs_utf8.def: tools/charsets/pxp_lex_defs_utf8.def
cd lexing ; $(LN) ../tools/charsets/pxp_lex_defs_utf8.def pxp_lex_defs_utf8.def
tools/charsets/pxp_lex_defs_utf8.def: tools/ucs2_to_utf8/ucs2_to_utf8$(EXE) tools/charsets/pxp_lex_defs_generic.def tools/charsets/pxp_lex_defs_drv_utf8.def
tools/ucs2_to_utf8/ucs2_to_utf8$(EXE) tools/charsets/pxp_lex_defs_generic.def $@
$(CAT) tools/charsets/pxp_lex_defs_drv_utf8.def >> $@
lexing/pxp_lex_defs_iso88591.def: tools/charsets/pxp_lex_defs_iso88591.def
cd lexing ; $(LN) ../tools/charsets/pxp_lex_defs_iso88591.def pxp_lex_defs_iso88591.def
clean::
$(RM) namespace/pxp_lex_defs_utf8.def
$(RM) lexing/pxp_lex_defs_utf8.def
$(RM) tools/charsets/pxp_lex_defs_utf8.def
$(RM) lexing/pxp_lex_defs_iso88591.def
#########################################################################
# Sub-Sub-Sub-Section: Tools
# Description:
# These are the targets for creating tools that generate source code
#
# tools/escaping/escaping: character escaping tool
# tools/ucs2_to_utf/ucs2_to_utf8: UTF8 character conversion
# clean:: removes created source files
# install:: installs base/pervasive.xq
# uninstall:: removes base/pervasive.xq
#########################################################################
# Tools
#
tools/escaping/escaping$(EXE):
cd tools/escaping ; $(MAKE) escaping$(EXE)
tools/ucs2_to_utf8/ucs2_to_utf8$(EXE):
cd tools/ucs2_to_utf8 ; $(MAKE) ucs2_to_utf8$(EXE)
install::
uninstall::
clean::
cd tools/escaping ; $(MAKE) clean
cd tools/ucs2_to_utf8 ; $(MAKE) clean
## Website
#
install::
uninstall::
clean::
cd website ; $(MAKE) clean
#########################################################################
# Section: Makefile post-includes
# Description:
# This is where the dependency file is included and generated
# We place the dependencies to make sure that various files
# are generated before we need them.
#########################################################################
clobber::
$(RM) .depend
updatedepend::
$(MAKE) .depend DEPDEPEND=1
for i in $(GALAX_ALL_SUBCOMPONENTS) tools/ucs2_to_utf8; do (cd $$i ; $(MAKE) updatedepend); done
ifdef DEPDEPEND
.depend: $(GALAX_MLIFILES) $(GALAX_MLFILES) $(GALAX_ALL_COMMAND_OBJS:.cmo=.ml)
$(OCAMLDEP) $(GALAX_TOOLS_INCLUDES) $(GALAX_INCLUDES) $(GALAX_MLIFILES) $(GALAX_MLFILES) $(GALAX_ALL_COMMAND_OBJS:.cmo=.ml) | $(SED) -e 's?\([a-z]\)\\?\1\/?g' > .depend
else
.depend:
$(OCAMLDEP) $(GALAX_TOOLS_INCLUDES) $(GALAX_INCLUDES) $(GALAX_MLIFILES) $(GALAX_MLFILES) $(GALAX_ALL_COMMAND_OBJS:.cmo=.ml) | $(SED) -e 's?\([a-z]\)\\?\1\/?g' > .depend
endif
ifndef NODEPEND
include .depend
endif