35 lines
464 B
Makefile
35 lines
464 B
Makefile
T := $(sort $(wildcard t-*.sh))
|
|
|
|
all:
|
|
|
|
test: $(T)
|
|
@if [ -e failed-tests ]; then \
|
|
echo; \
|
|
echo TEST FAILURES:; \
|
|
echo; \
|
|
cat failed-tests; \
|
|
echo; \
|
|
exit 1; \
|
|
fi
|
|
|
|
autotest: test
|
|
|
|
remove-failed-tests:
|
|
rm -f failed-tests
|
|
|
|
$(T): remove-failed-tests
|
|
@sh $@
|
|
|
|
clean: remove-failed-tests
|
|
rm -fr lab
|
|
|
|
distclean: clean
|
|
rm -f Makefile
|
|
|
|
install:
|
|
uninstall:
|
|
release:
|
|
|
|
.PHONY: test autotest remove-failed-tests all install uninstall release \
|
|
distclean $(T)
|