Closed ygrek closed 11 years ago
Here is the patch :
commit 83a7e1619465b987dc08cfcbd9335370fc7b1831 (HEAD, master) Author: ygrek <ygrek@autistici.org> Date: Thu Sep 5 15:49:10 2013 +0800 allow to override prefix from command-line diff --git a/OMakefile b/OMakefile index 4ea8dc5..568bb34 100644 --- a/OMakefile +++ b/OMakefile @@ -1,3 +1,11 @@ + +prefix = /usr/local +INSTALL = install +RM = rm -f + +# allow to override the above variables from command line +DefineCommandVars() + USE_OCAMLFIND = true NATIVE_ENABLED = true BYTE_ENABLED = true @@ -8,10 +16,6 @@ OCAMLFLAGS = -bin-annot -w +a-4-6-9-27..29-32..99 -warn-error +a-4-6-7-9-18-2 OCAMLOPTFLAGS = -g -inline 100 OCAMLCFLAGS += -g -prefix = /usr/local -INSTALL = install -RM = rm -f - OCAMLPACKS[] = camlp4 extlib @@ -50,7 +54,7 @@ install: .PHONY: uninstall uninstall: - $(RM) $(prefix)/extprotc$(EXE) + $(RM) $(prefix)/bin/extprotc$(EXE) ocamlfind remove extprot .PHONY: clean
Thanks, just applied it.
Here is the patch :