Ocaml example makefiles tweaks for consistency with other languages. Attempt to add runtime tests to 'make check' - untested.

This commit is contained in:
William S Fulton 2013-04-15 22:45:01 +01:00
commit 280cd16b7e
11 changed files with 85 additions and 68 deletions

View file

@ -7,27 +7,28 @@ MLFILE = example.ml
PROGFILE = example_prog.ml
OBJS =
all:: static
check: build
$(MAKE) -f $(TOP)/Makefile TARGET='$(TARGET)' ocaml_run
dynamic::
build: static
dynamic:
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' MLFILE='$(MLFILE)' \
PROGFILE='$(PROGFILE)' OBJS='$(OBJS)' \
ocaml_dynamic_cpp
static::
static:
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' MLFILE='$(MLFILE)' \
PROGFILE='$(PROGFILE)' OBJS='$(OBJS)' \
ocaml_static_cpp
toplevel::
toplevel:
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' MLFILE='$(MLFILE)' \
PROGFILE='$(PROGFILE)' OBJS='$(OBJS)' \
ocaml_static_cpp_toplevel
clean::
clean:
$(MAKE) -f $(TOP)/Makefile MLFILE='$(MLFILE)' ocaml_clean
check: all