-
Notifications
You must be signed in to change notification settings - Fork 125
/
Makefile
36 lines (30 loc) · 1.06 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
OCAMLOPT ?= ocamlopt.opt
OPA ?= opa --parser js-like
OPA_PLUGIN_BUILDER ?= opa-plugin-builder
export
EXAMPLES= \
hello-opa/hello-opa.exe \
hello_chat/hello_chat.exe \
hello_chat/hello_chat_min.exe \
hello_wiki/hello_wiki.exe \
hello_wiki/hello_wiki_simple.exe \
hello_web_services/hello_wiki_rest.exe \
hello_web_services/hello_wiki_rest_client.exe \
hello_web_services/hello_wiki_rest_client_customizable.exe \
hello_recaptcha/hello_recaptcha_app.exe
hello_recaptcha/%.exe:
$(MAKE) -C $(@D) $(@F)
%.exe: %.opa
cd $(<D) && $(OPA) $(<F)
examples: $(EXAMPLES)
$(MAKE) -C opa_bindings_examples
$(MAKE) -C opa_bindings_examples/c_binding
$(MAKE) -C opa_bindings_examples/external_types
$(MAKE) -C opa_bindings_examples/opa_types
clean:
rm -rf `find . -name '_build' -o -name '*.broken' -o -name '_tracks' -o -name '*.opp' -o -name '*.opx'`
rm -rf $(EXAMPLES)
$(MAKE) -C opa_bindings_examples clean
$(MAKE) -C opa_bindings_examples/c_binding clean
$(MAKE) -C opa_bindings_examples/external_types clean
$(MAKE) -C opa_bindings_examples/opa_types clean