Commit | Line | Data |
---|---|---|
d6ce1786 C |
1 | # If ocaml reports that Sys.os_type is Unix, we assume Unix, otherwise |
2 | # we assume Windows. | |
3 | ||
4 | ifeq "$(shell rm -f ./o.ml && echo print_endline Sys.os_type > ./o.ml && ocaml ./o.ml && rm -f ./o.ml)" "Unix" | |
5 | MENHIREXE := menhir | |
6 | OBJ := o | |
7 | else | |
8 | MENHIREXE := menhir.exe | |
9 | OBJ := obj | |
10 | endif |