diff options
author | Tony Theodore <tonyt@logyst.com> | 2012-12-14 09:42:46 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2012-12-14 10:34:13 (GMT) |
commit | 7cc655aaa431556f4aeab04bf8870bd95b6f35c9 (patch) | |
tree | a8b1c9b78f234ac95f225f73717f946b065135c1 /src/ocaml-camlimages.mk | |
parent | de5bb9bd0c32f9676f67888032a89048ffd234dd (diff) | |
download | mxe-7cc655aaa431556f4aeab04bf8870bd95b6f35c9.zip mxe-7cc655aaa431556f4aeab04bf8870bd95b6f35c9.tar.gz mxe-7cc655aaa431556f4aeab04bf8870bd95b6f35c9.tar.bz2 |
ocaml packages: install test programs
Diffstat (limited to 'src/ocaml-camlimages.mk')
-rw-r--r-- | src/ocaml-camlimages.mk | 7 |
1 files changed, 5 insertions, 2 deletions
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 |