test-exe.mk: Add target testclean, fix dependencies

- Add target testclean
  - Beautify output
  - Fix dependencies
This commit is contained in:
Jan Lindemann 2005-12-25 19:52:11 +00:00 committed by Jan Lindemann
commit df71ceec59

View file

@ -7,19 +7,16 @@ ifeq ($(EXE),)
EXE = $(notdir $(shell pwd))
endif
include $(MODDIR)/make/defs.mk
include $(MODDIR)/make/ldlibpath.mk
include $(MODDIR)/make/exe.mk
all: test.done
clean: test-out-clean
test: test.done
clean: testclean
test.done:
if ! 2>&1 make run > test.out 2>&1 ; then \
echo "================= test failed"; \
cat test.out; \
fi
touch $@
test-out-clean:
testclean:
rm -rf test.done test.out