Skip to content

Commit

Permalink
Improved Makefile (used only for devel)
Browse files Browse the repository at this point in the history
  • Loading branch information
vbmithr committed Apr 25, 2014
1 parent f0559f8 commit aa13333
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
PREFIX=/usr/local
PKG=smtp
PREFIX=`opam config var prefix`
BUILDOPTS=native=true native-dynlink=true unix=true lwt=true

all: build

build:
ocaml pkg/build.ml native=true native-dynlink=true unix=true lwt=true
ocaml pkg/build.ml $(BUILDOPTS)

install: build
opam-installer --prefix=$(PREFIX) *.install
opam-installer --prefix=$(PREFIX) $(PKG).install

uninstall: $(PKG).install
opam-installer -u --prefix=$(PREFIX) $(PKG).install

PHONY: clean

Expand Down

0 comments on commit aa13333

Please sign in to comment.