--- ocamlsdl-0.9.1.old/src/Makefile 2015-07-23 05:29:43.752109265 -0400 +++ ocamlsdl-0.9.1/src/Makefile 2015-07-23 07:46:43.782109265 -0400 @@ -17,9 +17,7 @@ TARGETS = sdl.cma $(patsubst %,sdl%.cma,$(PARTS)) TARGETS += libsdlstub.$(A) $(patsubst %,libsdl%stub.$(A),$(PARTS)) -ifdef OCAMLOPT -TARGETS += sdl.cmxa $(patsubst %,sdl%.cmxa,$(PARTS)) -endif +TARGETS += $(ifneq ($(OCAMLOPT), no) sdl.cmxa $(patsubst %,sdl%.cmxa,$(PARTS))) all : $(TARGETS) @@ -66,7 +64,7 @@ INSTALL_DIR = $(DESTDIR)$(OCAMLSDLDIR) INSTALL_TARGETS = $(if $(OCAMLFIND), \ install-findlib, \ - install-byte $(if $(OCAMLOPT),install-opt) $(if $(OCAMLMKLIB),install-dll)) + install-byte $(ifneq $($(OCAMLOPT), no) install-opt) $(if $(OCAMLMKLIB),install-dll)) install : all $(INSTALL_TARGETS) install-byte: $(INSTALL) -d $(INSTALL_DIR)