diff options
-rw-r--r-- | src/ocaml-cairo.mk | 7 | ||||
-rw-r--r-- | src/ocaml-camlimages.mk | 7 | ||||
-rw-r--r-- | src/ocaml-findlib.mk | 6 | ||||
-rw-r--r-- | src/ocaml-lablgtk2.mk | 6 |
4 files changed, 17 insertions, 9 deletions
diff --git a/src/ocaml-cairo.mk b/src/ocaml-cairo.mk index 6959c7d..125e3fb 100644 --- a/src/ocaml-cairo.mk +++ b/src/ocaml-cairo.mk @@ -23,10 +23,11 @@ define $(PKG)_BUILD --prefix='$(PREFIX)/$(TARGET)' $(MAKE) -C '$(1)' -j '$(JOBS)' install cd '$(1)' && cp -f META $(PREFIX)/$(TARGET)/lib/ocaml/cairo/ + # test - cp '$(2).ml' '$(1)/test.ml' - cd '$(1)' && '$(TARGET)-ocamlfind' opt -linkpkg \ + '$(TARGET)-ocamlfind' opt -linkpkg \ -package lablgtk2.auto-init \ -package cairo.lablgtk2 \ - test.ml + -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \ + < '$(2).ml' endef diff --git a/src/ocaml-camlimages.mk b/src/ocaml-camlimages.mk index 64df010..f4d8487 100644 --- a/src/ocaml-camlimages.mk +++ b/src/ocaml-camlimages.mk @@ -28,7 +28,10 @@ define $(PKG)_BUILD $(SED) -i 's,sed,$(SED),g' $(1)/Makefile $(SED) -i 's,sed,$(SED),g' $(1)/src/Makefile $(MAKE) -C '$(1)' -j 1 install + # test - cp '$(2).ml' '$(1)/test.ml' - cd '$(1)' && '$(TARGET)-ocamlfind' opt -linkpkg -package camlimages test.ml + '$(TARGET)-ocamlfind' opt -linkpkg \ + -package camlimages \ + -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \ + < '$(2).ml' endef diff --git a/src/ocaml-findlib.mk b/src/ocaml-findlib.mk index e0c9d3e..3ef1bdf 100644 --- a/src/ocaml-findlib.mk +++ b/src/ocaml-findlib.mk @@ -49,6 +49,8 @@ define $(PKG)_BUILD > $(PREFIX)/$(TARGET)/etc/findlib.conf # test - cp '$(2).ml' '$(1)/test.ml' - cd '$(1)' && '$(TARGET)-ocamlfind' opt test.ml + '$(TARGET)-ocamlfind' opt \ + -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \ + < '$(2).ml' + endef diff --git a/src/ocaml-lablgtk2.mk b/src/ocaml-lablgtk2.mk index 1129365..e3beb31 100644 --- a/src/ocaml-lablgtk2.mk +++ b/src/ocaml-lablgtk2.mk @@ -26,6 +26,8 @@ define $(PKG)_BUILD $(MAKE) -C '$(1)/src' -j 1 install # test - cp '$(2).ml' '$(1)/test.ml' - cd '$(1)' && '$(TARGET)-ocamlfind' opt -package lablgtk2.gl -linkpkg test.ml + '$(TARGET)-ocamlfind' opt -linkpkg \ + -package lablgtk2.gl \ + -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \ + < '$(2).ml' endef |