Every directory should have a test target, and the test target should depend on all so that all files are generated that might be needed for testing. This commit fixes some missing targets, and adds some missing dependencies.
Signed-off-by: Jan Lindemann <jan@janware.com>
32 lines
571 B
Makefile
32 lines
571 B
Makefile
# generic utility modules
|
|
# (c) 2001 jannet it services
|
|
# contact@jannet.de
|
|
# $Id$
|
|
|
|
EXE_BASENAME ?= test-$(notdir $(shell $(PWD)))
|
|
|
|
include $(JWBDIR)/make/run.mk
|
|
|
|
all: $(EXE)
|
|
install:
|
|
clean: execlean localclean profclean testclean
|
|
distclean:
|
|
run test: all.dirs $(EXE) $(EXE_BIN)
|
|
strace: $(EXE) $(EXE_BIN)
|
|
test: all test.done
|
|
|
|
test.done:
|
|
if ! 2>&1 make run > test.out 2>&1; then \
|
|
$(CAT) test.out; \
|
|
exit 1; \
|
|
fi
|
|
touch $@
|
|
|
|
testclean:
|
|
$(RM) -rf test.done test.out
|
|
|
|
ifeq ($(USE_PROJECT_LIB),true)
|
|
$(LIB_SO): $(LIB_A)
|
|
$(EXE): $(LIB_SO)
|
|
endif
|
|
all.dirs:
|