Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cduce
cduce
Commits
24161c6c
Commit
24161c6c
authored
Jul 10, 2007
by
Pietro Abate
Browse files
[r2004-03-13 16:14:23 by beppe] Few modifications
Original author: beppe Date: 2004-03-13 16:14:24+00:00
parent
b5fa77ae
Changes
3
Hide whitespace changes
Inline
Side-by-side
INSTALL
View file @
24161c6c
...
@@ -57,9 +57,10 @@ Important notes:
...
@@ -57,9 +57,10 @@ Important notes:
<hit enter key when asked for password>
<hit enter key when asked for password>
cvs -z3 -d":pserver:anoncvs@camlcvs.inria.fr:/caml" co ocaml
cvs -z3 -d":pserver:anoncvs@camlcvs.inria.fr:/caml" co ocaml
- cduce can be interfaced with OCaml language to be called from it. In order
Furthermore cduce can be interfaced with OCaml language to be called from
to be able to use this feature, you will have to patch OCaml Makefile and
it. In order to be able to use this feature, you will have to set the
build a special library. Everything is explained bellow.
CDuce environment variable ML_INTERFACE to true, patch OCaml
Makefile and build a special library. Everything is explained bellow.
- pcre-ocaml: you may also need to install the PCRE library
- pcre-ocaml: you may also need to install the PCRE library
from http://www.pcre.org/ (use version >=4.4)
from http://www.pcre.org/ (use version >=4.4)
...
@@ -96,13 +97,17 @@ Efficiency issues:
...
@@ -96,13 +97,17 @@ Efficiency issues:
Compilation
Compilation
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Build OCaml compiler lib (needed to interface CDuce with OCaml):
IF YOU SET ML_INTERFACE TO TRUE ...
- Copy ocaml_cdo2cmo_patch (located in cdo2cmo directory of your cduce
that is if you want to be able to call CDuce functions from OCaml
archive) in the directory where you extracted OCaml sources.
then you have to build OCaml compiler lib:
- Patch OCaml's Makefile with:
- Copy ocaml_cdo2cmo_patch (located in cdo2cmo directory of your cduce
patch -Np1 < ocaml_cdo2cmo_patch
archive) in the directory where you extracted OCaml sources.
- Build OCaml's special library:
- Patch OCaml's Makefile with:
make install_liball
patch -Np1 < ocaml_cdo2cmo_patch
- Build OCaml's special library:
make install_liball
ELSE
THE FAST WAY:
THE FAST WAY:
...
...
Makefile.conf
View file @
24161c6c
...
@@ -7,7 +7,7 @@ endif
...
@@ -7,7 +7,7 @@ endif
# profiling support
# profiling support
PROFILE
=
false
PROFILE
=
false
#
cduce interface
.
#
.mli file support to interface CDuce with OCaml
.
ML_INTERFACE
=
false
ML_INTERFACE
=
false
# use wlex lexers for parsing XML files with PXP
# use wlex lexers for parsing XML files with PXP
...
...
Makefile.distrib
View file @
24161c6c
...
@@ -101,7 +101,7 @@ all: cduce cDuce_all.cma dtd2cduce validate
...
@@ -101,7 +101,7 @@ all: cduce cDuce_all.cma dtd2cduce validate
install
:
all
install
:
all
mkdir
-p
$(PREFIX)
/bin/
mkdir
-p
$(PREFIX)
/bin/
mkdir
-p
$(PREFIX)
/man/man1/
mkdir
-p
$(PREFIX)
/man/man1/
$(INSTALL)
-m755
cduce
$(EXE)
dtd2cduce
$(EXE)
$(PREFIX)
/bin/
$(INSTALL)
-m755
cduce
$(EXE)
dtd2cduce
$(EXE)
validate
$(EXE)
$(PREFIX)
/bin/
$(INSTALL)
-m644
doc/cduce.1
$(PREFIX)
/man/man1/
$(INSTALL)
-m644
doc/cduce.1
$(PREFIX)
/man/man1/
$(INSTALL)
-m644
doc/dtd2cduce.1
$(PREFIX)
/man/man1/
$(INSTALL)
-m644
doc/dtd2cduce.1
$(PREFIX)
/man/man1/
$(INSTALL)
-m644
doc/validate.1
$(PREFIX)
/man/man1/
$(INSTALL)
-m644
doc/validate.1
$(PREFIX)
/man/man1/
...
@@ -109,6 +109,7 @@ install: all
...
@@ -109,6 +109,7 @@ install: all
uninstall
:
uninstall
:
rm
$(PREFIX)
/bin/cduce
$(EXE)
\
rm
$(PREFIX)
/bin/cduce
$(EXE)
\
$(PREFIX)
/bin/dtd2cduce
$(EXE)
\
$(PREFIX)
/bin/dtd2cduce
$(EXE)
\
$(PREFIX)
/bin/validate
$(EXE)
\
$(PREFIX)
/man/man1/cduce.1
\
$(PREFIX)
/man/man1/cduce.1
\
$(PREFIX)
/man/man1/dtd2cduce.1
\
$(PREFIX)
/man/man1/dtd2cduce.1
\
$(PREFIX)
/man/man1/validate.1
$(PREFIX)
/man/man1/validate.1
...
@@ -129,11 +130,12 @@ help:
...
@@ -129,11 +130,12 @@ help:
@
echo
""
@
echo
""
@
echo
"OPTIONS (default value in brackets)"
@
echo
"OPTIONS (default value in brackets)"
@
echo
" PREFIX=<path> : set the prefix for installation [/usr/local]"
@
echo
" PREFIX=<path> : set the prefix for installation [/usr/local]"
@
echo
" NATIVE=false : use the OCaml native code compiler to build CDuce [true]"
@
echo
" NATIVE=true|false : use the OCaml native code compiler to build CDuce [true]"
@
echo
" PXP_WLEX=true : use wlex for parsing UTF-8 XML files [false]"
@
echo
" PXP_WLEX=true|false : use wlex for parsing UTF-8 XML files [false]"
@
echo
" EXPAT=true : build expat support [false]"
@
echo
" EXPAT=true|false : build expat support [false]"
@
echo
" CURL=true: build curl support [false]"
@
echo
" CURL=true|false: build curl support [false]"
@
echo
" NETCLIENT=false: build netclient support [true]"
@
echo
" NETCLIENT=true|false: build netclient support [true]"
@
echo
" ML_INTERFACE=true|false: build support for OCaml [false]"
@
echo
""
@
echo
""
# Source directories
# Source directories
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment