Commit 6eaffe63 authored by POTTIER Francois's avatar POTTIER Francois

Add [make reinstall].

Use [ocamlbuild -j 0].
Cleanup.
parent b22fdf1f
......@@ -12,11 +12,13 @@ RUNTIME := \
VisitorsRuntime
# Not sure whether all of the following files are really required.
OCAMLBUILD_TARGET := \
TARGET := \
$(patsubst %,$(PLUGIN).%,a cma cmxa cmxs) \
$(patsubst %,$(RUNTIME).%,a cma cmi cmo cmx cmxa o) \
OCAMLBUILD_FLAGS := \
OCAMLBUILD := \
ocamlbuild \
-j 0 \
-use-ocamlfind \
-classic-display \
-cflags "-g" -lflags "-g"
......@@ -25,17 +27,20 @@ OCAMLBUILD_FLAGS := \
# Rules.
.PHONY: all clean install uninstall
.PHONY: all clean install uninstall reinstall
all:
ocamlbuild $(OCAMLBUILD_FLAGS) $(OCAMLBUILD_TARGET)
$(OCAMLBUILD) $(TARGET)
clean:
rm -f *~
ocamlbuild $(OCAMLBUILD_FLAGS) -clean
$(OCAMLBUILD) -clean
install: all
ocamlfind install $(PACKAGE) META $(patsubst %,_build/%,$(OCAMLBUILD_TARGET))
ocamlfind install $(PACKAGE) META $(patsubst %,_build/%,$(TARGET))
uninstall:
ocamlfind remove $(PACKAGE)
reinstall: uninstall clean
@ $(MAKE) install
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