jw-pkg/make/test-exe.mk
2007-10-31 08:17:33 +00:00

25 lines
396 B
Makefile

# generic utility modules
# (c) 2001 jannet it services
# contact@jannet.de
# $Id$
ifeq ($(TARGET),mingw)
EXE ?= test_$(notdir $(shell pwd)).exe
else
EXE ?= test_$(notdir $(shell pwd))
endif
include $(MODDIR)/make/exe.mk
test: test.done
clean: testclean
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