Use new guile_embedded_run target or guile_run target for running the examples like the other target languages (for suppressing stdout if run from top level). Consistency with other target language file renames: use runme.scm for scripts and example.i, example.c for example code. Add class example to examples being tested.
19 lines
486 B
Makefile
19 lines
486 B
Makefile
TOP = ../..
|
|
SWIG = $(TOP)/../preinst-swig
|
|
SRCS = example.c
|
|
TARGET = example
|
|
INTERFACE = example.i
|
|
|
|
check: build
|
|
$(MAKE) -f $(TOP)/Makefile guile_run
|
|
|
|
build:
|
|
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
|
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' guile
|
|
|
|
static:
|
|
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
|
TARGET='my-guile' INTERFACE='$(INTERFACE)' guile_static
|
|
|
|
clean:
|
|
$(MAKE) -f $(TOP)/Makefile TARGET='$(TARGET)' guile_clean
|