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
327 B
Makefile
19 lines
327 B
Makefile
SRCS = example.c
|
|
TARGET = port
|
|
IFILE = example.i
|
|
MKDIR = ..
|
|
|
|
check: build
|
|
./$(TARGET) -s runme.scm
|
|
|
|
build:
|
|
$(MAKE) -f $(MKDIR)/Makefile \
|
|
SRCS='$(SRCS)' \
|
|
TARGET=$(TARGET) \
|
|
IFILE=$(IFILE) \
|
|
MODULE=$(MODULE) \
|
|
sub-all
|
|
|
|
clean:
|
|
$(MAKE) -f $(MKDIR)/Makefile TARGET='$(TARGET)' guile_clean
|
|
rm -f test.out
|