jw-pkg/make/test-exe.mk
Jan Lindemann f70465cbd5 make: Replace pwd by $(PWD)
Signed-off-by: Jan Lindemann <jan@janware.com>
2017-12-18 13:45:55 +00:00

33 lines
553 B
Makefile

# generic utility modules
# (c) 2001 jannet it services
# contact@jannet.de
# $Id$
EXE_BASENAME ?= test-$(notdir $(shell $(PWD)))
include $(MODDIR)/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: