test-exe.mk: Fix exe name and error handling

- Fix exe name ("test" made it recurse forever)
  - Make it fail in case of an error
This commit is contained in:
Jan Lindemann 2005-12-28 11:56:53 +00:00 committed by Jan Lindemann
commit e8972ce56a

View file

@ -3,9 +3,7 @@
# contact@jannet.de
# $Id$
ifeq ($(EXE),)
EXE = $(notdir $(shell pwd))
endif
EXE = test_$(notdir $(shell pwd))
include $(MODDIR)/make/exe.mk
@ -13,8 +11,9 @@ test: test.done
clean: testclean
test.done:
if ! 2>&1 make run > test.out 2>&1 ; then \
if ! 2>&1 make run > test.out 2>&1; then \
cat test.out; \
exit 1; \
fi
touch $@