File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ all: toplevel.js eval.js
66
77OCPINDENT =$(shell ocamlfind query ocp-indent -format "-package % p.lib" 2> /dev/null)
88HIGLO =$(shell ocamlfind query higlo.ocaml -format "-package % p -rectypes" 2> /dev/null)
9+ DERIVING =$(shell ocamlfind query js_of_ocaml.deriving -format "% p" 2> /dev/null)
910
1011CPPO_OPT =
1112ifneq ($(OCPINDENT ) ,)
@@ -16,19 +17,20 @@ ifneq ($(HIGLO),)
1617CPPO_OPT+ = -D higlo
1718endif
1819
20+ ifneq ($(DERIVING ) ,)
21+ DERIVING_SYNTAX = js_of_ocaml.deriving.syntax deriving.syntax.std
22+ endif
23+
1924ifneq ($(NO_SYNTAXES ) ,1)
20- SYNTAXES = lwt.syntax \
21- js_of_ocaml.syntax \
22- js_of_ocaml.deriving.syntax deriving.syntax.std
25+ SYNTAXES = lwt.syntax js_of_ocaml.syntax $(DERIVING_SYNTAX )
2326endif
2427
2528JSFILES = +weak.js +toplevel.js +dynlink.js +nat.js
2629
2730PACKAGES = \
2831 lwt bigarray tyxml.functor \
2932 react reactiveData \
30- js_of_ocaml \
31- js_of_ocaml.deriving \
33+ js_of_ocaml $(DERIVING ) \
3234 js_of_ocaml.tyxml \
3335 js_of_ocaml.toplevel \
3436 dynlink
You can’t perform that action at this time.
0 commit comments