Skip to content

Commit

Permalink
allow to override prefix from command-line
Browse files Browse the repository at this point in the history
  • Loading branch information
ygrek authored and mfp committed Sep 5, 2013
1 parent 104c388 commit c674f25
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions OMakefile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down Expand Up @@ -50,7 +54,7 @@ install:

.PHONY: uninstall
uninstall:
$(RM) $(prefix)/extprotc$(EXE)
$(RM) $(prefix)/bin/extprotc$(EXE)
ocamlfind remove extprot

.PHONY: clean
Expand Down

0 comments on commit c674f25

Please sign in to comment.