Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Why3
why3
Commits
f2dd6dad
Commit
f2dd6dad
authored
Sep 29, 2010
by
Andrei Paskevich
Browse files
trying to use sed in a portable fashion (Apple = fashion, right?)
parent
5cb917b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile.in
View file @
f2dd6dad
...
...
@@ -163,19 +163,17 @@ LIB_PARSER_POSTLUDE = \
"let logic_file_eof env = inside_env env logic_file_eof
\n
let list0_decl_eof env lenv uc = inside_uc env lenv uc list0_decl_eof
\n
"
LIB_PARSER_INTERFACE
=
\
-e
"s/^val
\+
logic_file_eof *:/
\0
Env.env ->/"
\
-e
"s/^val
\+
list0_decl_eof *:/
\0
Env.env ->
\
-e
"s/^val
*
logic_file_eof *:/
val logic_file_eof :
Env.env ->/"
\
-e
"s/^val
*
list0_decl_eof *:/
val list0_decl_eof :
Env.env ->
\
Theory.theory Theory.Mnm.t -> Theory.theory_uc ->/"
src/parser/parser.ml src/parser/parser.mli
:
src/parser/parser.mly
$(OCAMLYACC)
$<
printf
$(LIB_PARSER_POSTLUDE)
>>
src/parser/parser.ml
# not portable: sed -i
$(LIB_PARSER_INTERFACE)
src/parser/parser.mli
perl
-pi
-e
"s/val logic_file_eof :/val logic_file_eof : Env.env ->/"
src/parser/parser.mli
perl
-pi
-e
"s/val list0_decl_eof :/val list0_decl_eof : Env.env ->
\
Theory.theory Theory.Mnm.t -> Theory.theory_uc ->/"
src/parser/parser.mli
mv
src/parser/parser.mli src/parser/parser.mli.orig
sed
$(LIB_PARSER_INTERFACE)
src/parser/parser.mli.orig
>
\
src/parser/parser.mli
rm
src/parser/parser.mli.orig
# build targets
...
...
@@ -398,14 +396,14 @@ IDEMLI = $(addsuffix .mli, $(IDEMODULES))
IDECMO
=
$(
addsuffix
.cmo,
$(IDEMODULES)
)
IDECMX
=
$(
addsuffix
.cmx,
$(IDEMODULES)
)
$(IDECMO) $(IDECMX)
:
INCLUDES += -I src/ide
$(IDECMO) $(IDECMX)
:
INCLUDES += -I src/ide
# build targets
byte
:
bin/whyide.byte
opt
:
bin/whyide.opt
byte
:
bin/whyide.byte
opt
:
bin/whyide.opt
bin/whyide.opt bin/whyide.byte
:
INCLUDES += -thread -I +threads -I +lablgtk2
bin/whyide.opt bin/whyide.byte
:
INCLUDES += -thread -I +threads -I +lablgtk2
bin/whyide.opt bin/whyide.byte
:
EXTOBJS += gtkThread
bin/whyide.opt bin/whyide.byte
:
EXTLIBS += threads lablgtk lablgtksourceview2
...
...
@@ -457,8 +455,8 @@ $(DBCMO) $(DBCMX): INCLUDES += -I src/ide -I +sqlite3
# build targets
byte
:
bin/whydb.byte
opt
:
bin/whydb.opt
byte
:
bin/whydb.byte
opt
:
bin/whydb.opt
bin/whydb.opt bin/whydb.byte
:
INCLUDES += -thread -I +threads -I +lablgtk2 -I +sqlite3
bin/whydb.opt bin/whydb.byte
:
EXTOBJS += gtkThread
...
...
@@ -757,7 +755,7 @@ test-api: src/why.cma
DOC
=
doc/manual.pdf
# doc/manual.html
doc
:
$(DOC)
doc
:
$(DOC)
doc/manual.pdf
:
doc/apidoc.tex doc/manual.tex doc/version.tex
cd
doc
;
pdflatex manual
...
...
@@ -787,12 +785,12 @@ apidoc: $(FILESTODOC)
mkdir
-p
apidoc
$(OCAMLDOC)
-d
apidoc
-html
-keep-code
$(INCLUDES)
\
$(LIBINCLUDES)
$(FILESTODOC)
# $(LIBML)
# $(LIBML)
doc/apidoc.tex
:
$(FILESTODOC)
$(OCAMLDOC)
-o
doc/apidoc.tex
-latex
-noheader
-notrailer
$(INCLUDES)
\
$(LIBINCLUDES)
$(FILESTODOC)
# $(LIBML)
# $(LIBML)
clean
::
rm
-f
apidoc/
*
...
...
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