Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[weakid] fix weakid install

  • Loading branch information...
commit 32f0aded826ea946cb38619e52588a4440618841 1 parent 72f78a4
@samoht samoht authored
View
2  weakid/META
@@ -4,4 +4,6 @@ package "syntax" (
description = "Weak ID for OCaml values"
requires = "camlp4, type-conv.syntax, hash.syntax"
archive(syntax, preprocessor) = "pa_weakid.cma"
+ archive(byte) = "hweak.cmo"
+ archive(native) = "hweak.cmx"
)
View
19 weakid/Makefile
@@ -1,17 +1,12 @@
-OCAMLMAKEFILE = ../OCamlMakefile
-ANNOTATE = yes
-
-SOURCES = p4_weakid.ml pa_weakid.ml hweak.mli hweak.ml
-PACKS = type-conv hash.syntax
-RESULT = pa_weakid
-USE_CAMLP4 = yes
+.DEFAULT: all
.PHONY: all
-all: dcl
- @ :
+all:
+ $(MAKE) -f Makefile.syntax
+ $(MAKE) -f Makefile.core
install: all
- ocamlfind install weakid META pa_weakid.cm{i,a} p4_weakid.cm{i,o} hweak.cm{i,o}
+ ocamlfind install weakid META pa_weakid.cm{i,a} p4_weakid.cm{i,o} hweak.{o,cm{i,o,x}}
uninstall:
ocamlfind remove weakid
@@ -20,4 +15,6 @@ reinstall:
$(MAKE) uninstall
$(MAKE) install
-include $(OCAMLMAKEFILE)
+clean:
+ $(MAKE) -f Makefile.syntax clean
+ $(MAKE) -f Makefile.core clean
View
6 weakid/pa_weakid.ml
@@ -27,9 +27,5 @@ let _ =
add_generator "weakid"
(fun tds ->
let _loc = loc_of_ctyp tds in
- <:str_item<
- module Hash = struct
- $P4_weakid.gen tds$
- end
- >>
+ <:str_item< $P4_weakid.gen tds$ >>
)
View
6 weakid/test/all.ml
@@ -30,8 +30,8 @@ type o =
open OUnit
-let test_marshall () =
-()
+let test_syntax () = ()
+
let suite = [
- "all_f_marshall" >:: test_marshall
+ "all_f_syntax" >:: test_syntax
]
Please sign in to comment.
Something went wrong with that request. Please try again.