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
CHARGUERAUD Arthur
cfml
Commits
a884feab
Commit
a884feab
authored
Nov 06, 2014
by
POTTIER Francois
Browse files
Updated the installation process to create a symlink to TLC
and to tell the user how to define $CFML in his projects.
parent
0edd0a6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
GNUmakefile
View file @
a884feab
...
@@ -4,6 +4,11 @@
...
@@ -4,6 +4,11 @@
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
# This defines TLC.
include
Makefile.config
# ------------------------------------------------------------------------------
all
:
all
:
# Compile the generator.
# Compile the generator.
make
-C
generator
make
-C
generator
...
@@ -16,6 +21,7 @@ all:
...
@@ -16,6 +21,7 @@ all:
# the executable in $(PREFIX)/bin
# the executable in $(PREFIX)/bin
# the Coq library in $(PREFIX)/lib/coq
# the Coq library in $(PREFIX)/lib/coq
# the OCaml library in $(PREFIX)/lib/ocaml
# the OCaml library in $(PREFIX)/lib/ocaml
# a symlink to TLC as $(PREFIX)/lib/tlc
ifndef
PREFIX
ifndef
PREFIX
# TEMPORARY
# TEMPORARY
...
@@ -45,6 +51,14 @@ install: all
...
@@ -45,6 +51,14 @@ install: all
cp
Makefile.camllib
$(PREFIX)/lib/ocaml/Makefile
cp
Makefile.camllib
$(PREFIX)/lib/ocaml/Makefile
make
MAKECMJ
=
$(MAKECMJ)
MYOCAMLDEP
=
$(MYOCAMLDEP)
-C
$(PREFIX)
/lib/ocaml
make
MAKECMJ
=
$(MAKECMJ)
MYOCAMLDEP
=
$(MYOCAMLDEP)
-C
$(PREFIX)
/lib/ocaml
cd
$(PREFIX)/lib/ocaml
&&
rm
-f
.depend
Makefile
cd
$(PREFIX)/lib/ocaml
&&
rm
-f
.depend
Makefile
# Install a symlink to TLC, since we know where it is.
ln
-s
$(TLC)
$(PREFIX)/lib/tlc
# Success.
# Tell the user where we installed. This somewhat convoluted incantation is
# supposed to produce an absolute path even if $(PREFIX) is a relative path.
@echo
Successfully
installed.
@echo Please use the following definition in your projects
:
@
echo
CFML
=
$(
shell
cd
$(PREFIX)
&&
pwd
)
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
...
...
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