jw-pkg/make/test-exe.mk

33 lines
553 B
Makefile
Raw Normal View History

2005-12-25 13:49:16 +00:00
# generic utility modules
# (c) 2001 jannet it services
# contact@jannet.de
# $Id$
EXE_BASENAME ?= test-$(notdir $(shell $(PWD)))
2005-12-25 13:49:16 +00:00
include $(MODDIR)/make/run.mk
2005-12-25 13:49:16 +00:00
all: $(EXE)
install:
clean: execlean localclean profclean testclean
distclean:
run test: all.dirs $(EXE) $(EXE_BIN)
strace: $(EXE) $(EXE_BIN)
test: test.done
2005-12-25 13:49:16 +00:00
test.done:
if ! 2>&1 make run > test.out 2>&1; then \
2012-02-04 11:06:22 +00:00
$(CAT) test.out; \
exit 1; \
2005-12-25 13:49:16 +00:00
fi
touch $@
testclean:
$(RM) -rf test.done test.out
ifeq ($(USE_PROJECT_LIB),true)
$(LIB_SO): $(LIB_A)
$(EXE): $(LIB_SO)
endif
all.dirs: