-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The JSON extensions are indeed broken (see #54)
- Loading branch information
Showing
4 changed files
with
71 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,27 @@ | ||
P4OPTS = $(shell ocamlfind query str dyntype dyntype.syntax re re.str ulex xmlm ezjsonm -predicates syntax,preprocessor,byte -r -format "-I %d %a") | ||
OPTS = $(shell ocamlfind query dyntype re re.str ulex oUnit uri xmlm ezjsonm omd -predicates archives,byte -r -format "-I %d %a") | ||
TEST = render #tc_marshall | ||
LINK = $(shell ocamlfind query dyntype re re.str ulex oUnit uri xmlm ezjsonm omd -predicates archives,byte -r -format "-I %d %a") | ||
TESTS = render extension | ||
MAIN = test | ||
|
||
PP = $(TEST:%=%_pp.ml) | ||
CMO = $(TEST:%=%_pp.cmo) | ||
PP = $(TESTS:%=%_pp.ml) | ||
CMO = $(TESTS:%=%.cmo) | ||
INCL = -I ../_build/lib cow.cma | ||
|
||
.PHONY: all | ||
|
||
all: $(TEST) $(PP) | ||
all: $(MAIN) | ||
@ | ||
|
||
$(MAIN): $(MAIN).ml $(CMO) $(PP) | ||
ocamlfind ocamlc -package oUnit -linkpkg $(LINK) $(INCL) $(CMO)\ | ||
$(MAIN).ml -o $@ | ||
|
||
%_pp.ml: %.ml ../_build/syntax/pa_cow.cma | ||
camlp4o $(P4OPTS) -I ../_build/syntax pa_cow.cma $< -o $@ | ||
|
||
%: %.ml ../_build/syntax/pa_cow.cma | ||
ocamlc -g -pp 'camlp4o $(P4OPTS) -I ../_build/syntax pa_cow.cma' $(OPTS) -I ../_build/lib cow.cma $^ -o $@ | ||
%.cmo: %.ml ../_build/syntax/pa_cow.cma | ||
ocamlc -g -pp 'camlp4o $(P4OPTS) -I ../_build/syntax pa_cow.cma'\ | ||
$(LINK) $(INCL) $^ | ||
|
||
clean: | ||
rm -f $(TEST) $(PP) | ||
rm -f $(TESTS) $(MAIN) *.cmo *.cmi *~ $(PP) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
open OUnit | ||
|
||
let _ = | ||
run_test_tt_main ("COW" >::: (Render.suite @ Extension.suite)) |