Closed fvalasiad closed 1 year ago
@zvr What if we instead define a new rule "check" or whatever so that the examples are run solely when that rule is invoked?
make check
Toplevel makefile would then probably be:
ACLOCAL_AMFLAGS = -I m4
bin_PROGRAMS = build-recorder
build_recorder_SOURCES = \
src/tracer.c \
src/hash.c \
src/record.c \
src/main.c
SUBDIRS = benchmark
check:
$(MAKE) -C examples
No. we don't want examples and benchmarks being run when building the software.
And you need them in SUBDIRS
so that automake
knows which directories to visit.
Trying to build
build-recorder
in a clean install yields an error complaining that:That is because
SUBDIRS
runs recursively depth first, and actually tries to run the test cases beforebuild-recorder
is built.Steps to reproduce