Commit c621c3ed authored by POTTIER Francois's avatar POTTIER Francois

Install Makefile.preprocess with the package, so users can rely on it

without needing to copy it.
parent 3e9de29f
2017/02/15:
Install Makefile.preprocess with the package, so users can rely on it
without needing to copy it.
2017/02/13:
Add a new variety of visitors, "mapreduce".
......
......@@ -1540,7 +1540,9 @@ parameter).
The file \srcFile{Makefile.preprocess} offers a recipe that builds a file
named \oc|%.processed.ml| out of the source file \oc|%.ml|. This file contains
just the generated code. The recipe relies on \oc|sed|, \oc|perl|, and
\oc|ocp-indent| to extract and beautify the code.
\oc|ocp-indent| to extract and beautify the code. This file is installed
with the \visitors package; it can be found at the computed path
\verb+`ocamlfind query visitors`/Makefile.preprocess+.
% ------------------------------------------------------------------------------
......
......@@ -11,15 +11,22 @@ PLUGIN := \
RUNTIME := \
VisitorsRuntime
OCAMLBUILD := \
ocamlbuild \
-use-ocamlfind \
-classic-display \
# The targets that should be built (using ocamlbuild).
# Not sure whether all of the following files are really required.
TARGET := \
$(patsubst %,$(PLUGIN).%,a cma cmxa cmxs) \
$(patsubst %,$(RUNTIME).%,a cma cmi cmo cmx cmxa o) \
OCAMLBUILD := \
ocamlbuild \
-use-ocamlfind \
-classic-display \
# The files that should be installed (using ocamlfind).
FILES := \
META \
Makefile.preprocess \
$(patsubst %,_build/%,$(TARGET)) \
# ------------------------------------------------------------------------------
......@@ -35,7 +42,7 @@ clean:
$(OCAMLBUILD) -clean
install: all
ocamlfind install $(PACKAGE) META $(patsubst %,_build/%,$(TARGET))
ocamlfind install $(PACKAGE) $(FILES)
# [make uninstall] attempts to uninstall, but succeeds even if uninstallation
# fails (probably because the package was not installed in the first place).
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment