mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
32 lines
552 B
Makefile
32 lines
552 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: 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:
|