Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[fix] examples: fixed make rules

this should make the 'make examples' from the root of the repo work
  • Loading branch information...
commit f86e58cfa839d84b087b3bc28c82fdd9a29b6dc5 1 parent 4e8d3eb
Louis Gesbert authored
View
11 doc/book/Makefile
@@ -1,5 +1,6 @@
OPA ?= opa
OPA_PLUGIN_BUILDER ?= opa-plugin-builder
+OCAMLOPT ?= ocamlopt.opt
export
@@ -65,13 +66,13 @@ test.pdf: test.html Makefile toc.xsl print-cover.html print-footer.html print-he
zip ../book.zip *
examples: $(EXAMPLES)
- make -C also_bindings/sources
- make -C also_bindings/sources/c_binding
- make -C also_bindings/sources/external_types
- make -C also_bindings/sources/opa_types
+ $(MAKE) -C also_bindings/sources
+ $(MAKE) -C also_bindings/sources/c_binding
+ $(MAKE) -C also_bindings/sources/external_types
+ $(MAKE) -C also_bindings/sources/opa_types
hello_recaptcha/%.exe:
- make -C $(@D) $(@F)
+ $(MAKE) -C $(@D) $(@F)
%.exe: %.opa
cd $(<D) && $(OPA) $(<F)
View
4 doc/book/also_bindings/sources/Makefile
@@ -1,10 +1,10 @@
all : plugin opa
plugin:
- opa-plugin-builder -o plugin plugin.js plugin.ml
+ $(OPA_PLUGIN_BUILDER) -o plugin plugin.js plugin.ml
opa:
- opa plugin.opp hello_bindings.opa
+ $(OPA) plugin.opp hello_bindings.opa
@echo "run: ./hello_bindings.exe"
clean:
View
6 doc/book/also_bindings/sources/c_binding/Makefile
@@ -3,13 +3,13 @@ DIR:=$(shell pwd)
all: freq.o plugin opa
freq.o: freq.c
- ocamlopt.opt freq.c
+ $(OCAMLOPT) freq.c
plugin:
- opa-plugin-builder -o c_binding c_binding.ml
+ $(OPA_PLUGIN_BUILDER) -o c_binding c_binding.ml
opa:
- opa --mllopt $(DIR)/freq.o c_binding.opp freq.opa
+ $(OPA) --mllopt $(DIR)/freq.o c_binding.opp freq.opa
@echo "run: ./freq.exe"
clean:
View
4 doc/book/also_bindings/sources/external_types/Makefile
@@ -1,10 +1,10 @@
all : plugin opa
plugin:
- opa-plugin-builder -o bigint bigint.ml
+ $(OPA_PLUGIN_BUILDER) -o bigint bigint.ml
opa:
- opa bigint.opp bigint.opa
+ $(OPA) bigint.opp bigint.opa
clean:
rm -rf _build _tracks bigint.opp bigint.exe *.log
View
4 doc/book/also_bindings/sources/opa_types/Makefile
@@ -5,10 +5,10 @@ LINK=dbm.cmxa
all : plugin opa
plugin:
- opa-plugin-builder $(INCLUDE) -o dbm dbm.ml
+ $(OPA_PLUGIN_BUILDER) $(INCLUDE) -o dbm dbm.ml
opa:
- opa $(INCLUDE) $(LINK) dbm.opp dbm.opa
+ $(OPA) $(INCLUDE) $(LINK) dbm.opp dbm.opa
clean:
rm -rf _build _tracks dbm.opp dbm.exe *.log
Please sign in to comment.
Something went wrong with that request. Please try again.