Permalink
Browse files

Tweak build, get "make install" working

Signed-off-by: John Else <john.else@citrix.com>
  • Loading branch information...
1 parent 20bee7c commit f47de3ea05a00dd4f1885f714c5d417868759699 @johnelse committed Apr 1, 2013
Showing with 40 additions and 9 deletions.
  1. +5 −4 Makefile
  2. +5 −5 irc-client.obuild
  3. +30 −0 lib/META
View
@@ -3,12 +3,13 @@ dist/build/lib-irc-client/irc-client.cmxa:
obuild build
install:
- ocamlfind install irc-client lib/META $(wildcard dist/build/lib-irc-client/*)
- ocamlfind install irc-client.lwt lwt/META $(wildcard dist/build/lib-irc-client.lwt/*)
- ocamlfind install irc-client.unix unix/META $(wildcard dist/build/lib-irc-client.unix/*)
+ ocamlfind install irc-client lib/META \
+ $(wildcard dist/build/lib-irc_client/*) \
+ $(wildcard dist/build/lib-irc_client.lwt/*) \
+ $(wildcard dist/build/lib-irc_client.unix/*)
uninstall:
- ocamlfind remove irc-client irc-client.lwt irc-client.unix
+ ocamlfind remove irc-client
.PHONY: clean
clean:
View
@@ -3,17 +3,17 @@ version: 0.1.0
synopsis: IRC client library
obuild-ver: 1
-library irc-client
+library irc_client
src-dir: lib
modules: irc_client, irc_transport
-library irc-client.lwt
+library irc_client.lwt
src-dir: lwt
modules: irc_client_lwt
pp: camlp4o
- build-deps: irc-client, lwt, lwt.unix, lwt.syntax
+ build-deps: irc_client, lwt, lwt.syntax, lwt.unix
-library irc-client.unix
+library irc_client.unix
src-dir: unix
modules: irc_client_unix
- build-deps: irc-client
+ build-deps: irc_client
View
@@ -0,0 +1,30 @@
+version = "0.1.0"
+description = "IRC client library"
+requires = ""
+archive(byte) = "irc_client.cma"
+archive(byte, plugin) = "irc_client.cma"
+archive(native) = "irc_client.cmxa"
+archive(native, plugin) = "irc_client.cmxs"
+exists_if = "irc_client.cma"
+
+package "lwt" (
+ version = "0.1.0"
+ description = "IRC client library for Lwt"
+ requires = "irc-client lwt lwt.syntax lwt.unix"
+ archive(byte) = "irc_client_lwt.cma"
+ archive(byte, plugin) = "irc_client_lwt.cma"
+ archive(native) = "irc_client_lwt.cmxa"
+ archive(native, plugin) = "irc_client_lwt.cmxs"
+ exists_if = "irc_client_lwt.cma"
+)
+
+package "unix" (
+ version = "0.1.0"
+ description = "IRC client library for Unix"
+ requires = "irc-client"
+ archive(byte) = "irc_client_unix.cma"
+ archive(byte, plugin) = "irc_client_unix.cma"
+ archive(native) = "irc_client_unix.cmxa"
+ archive(native, plugin) = "irc_client_unix.cmxs"
+ exists_if = "irc_client_unix.cma"
+)

0 comments on commit f47de3e

Please sign in to comment.