Commit 7bf6a108 authored by POTTIER Francois's avatar POTTIER Francois

Early version of visitors plugin. Generates iter methods.

parent bf5f2558
description = "A visitor generation facility"
version = "(development)"
requires = ""
package "ppx" (
description = "[@@deriving visitors]"
version = "(development)"
exists_if = "ppx_deriving_visitors.cma"
requires(-ppx_driver) = "ppx_deriving"
ppxopt(-ppx_driver) = "ppx_deriving,./ppx_deriving_visitors.cma"
requires(ppx_driver) = "ppx_deriving.api"
archive(ppx_driver, byte) = "ppx_deriving_visitors.cma"
archive(ppx_driver, native) = "ppx_deriving_visitors.cmxa"
)
# ------------------------------------------------------------------------------
# Variables.
PACKAGE := \
visitors
PLUGIN := \
ppx_deriving_$(PACKAGE)
OCAMLBUILD_TARGET := \
$(PLUGIN).cma $(PLUGIN).cmxa $(PLUGIN).cmxs
OCAMLBUILD_FLAGS := \
-use-ocamlfind \
-classic-display \
-cflags "-g" -lflags "-g"
# ------------------------------------------------------------------------------
# Rules.
.PHONY: all clean install uninstall
all:
ocamlbuild $(OCAMLBUILD_FLAGS) $(OCAMLBUILD_TARGET)
clean:
rm -f *~
ocamlbuild $(OCAMLBUILD_FLAGS) -clean
install: all
ocamlfind install $(PACKAGE) META $(patsubst %,_build/%,$(OCAMLBUILD_TARGET))
uninstall:
ocamlfind remove $(PACKAGE)
true: \
safe_string, \
warn(A-4-44), \
package(compiler-libs.common), \
package(ppx_tools.metaquot), \
package(ppx_deriving.api)
This diff is collapsed.
(* This file intentionally empty. *)
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