jw-pkg/make/test-exe.mk
Jan Lindemann e8972ce56a 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
2005-12-28 11:56:53 +00:00

21 lines
322 B
Makefile

# generic utility modules
# (c) 2001 jannet it services
# contact@jannet.de
# $Id$
EXE = test_$(notdir $(shell pwd))
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