jw-pkg/make/test-exe.mk

25 lines
396 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$
2007-10-31 08:17:33 +00:00
ifeq ($(TARGET),mingw)
EXE ?= test_$(notdir $(shell pwd)).exe
else
EXE ?= test_$(notdir $(shell pwd))
2007-10-31 08:17:33 +00:00
endif
2005-12-25 13:49:16 +00:00
include $(MODDIR)/make/exe.mk
test: test.done
clean: testclean
2005-12-25 13:49:16 +00:00
test.done:
if ! 2>&1 make run > test.out 2>&1; then \
2005-12-25 13:49:16 +00:00
cat test.out; \
exit 1; \
2005-12-25 13:49:16 +00:00
fi
touch $@
testclean:
2005-12-25 13:49:16 +00:00
rm -rf test.done test.out