Skip to content

Commit

Permalink
Add support of pmake to our OCaml toolchain
Browse files Browse the repository at this point in the history
Closes #25
  • Loading branch information
foretspaisibles committed Jun 27, 2014
1 parent ed2b7e3 commit 1c7b760
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ocaml/ocaml.build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ _OCAML_BUILD.${obj:T}+=${${var}.${obj:T}}

.endif

.if !empty(_OCAML_CMXA:M${obj})
.if defined(_OCAML_CMXA)&&!empty(_OCAML_CMXA:M${obj})
# We are producing a CMXA file
clib:=${obj:C/.cmxa/.a/}
.if !target(${clib})
Expand Down
4 changes: 2 additions & 2 deletions ocaml/ocaml.yacc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ CLEANFILES+= ${file}
.endif
.endfor
.for mod in ${_OCAML_MLY:.mly=.ml}
.if empty(_OCAML_ML:M${mod})
.if !defined(_OCAML_ML)||empty(_OCAML_ML:M${mod})
_OCAML_ML+= ${mod}
.endif
.endfor
.for if in ${_OCAML_MLY:.mly=.mli}
.if empty(_OCAML_MLI:M${if})
.if !defined(_OCAML_MLI)||empty(_OCAML_MLI:M${if})
_OCAML_MLI+= ${if}
.endif
.endfor
Expand Down
4 changes: 1 addition & 3 deletions test/ocaml/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ SUBDIR+= miniproj-3
COMPILE?= byte_code

TESTENV= ${ENVTOOL} -i "PATH=${PATH}" "COMPILE=${COMPILE}"
.for prefix in ${PREFIX}
TESTENV+= "MAKEFLAGS=${MAKEFLAGS:NPACKAGE*:NPROJECT*:N-I${prefix}/share/mk}"
.endfor
TESTENV+= "MAKEFLAGS=${MAKEFLAGS:NPACKAGE*:NPROJECT*}"

test-clean:
${TESTENV} ${MAKE} realclean
Expand Down

0 comments on commit 1c7b760

Please sign in to comment.