NetBSD/crypto/dist/heimdal/Makefile.am.common
2000-08-02 19:57:59 +00:00

36 lines
806 B
Makefile

# $Id: Makefile.am.common,v 1.1.1.2 2000/08/02 19:58:00 assar Exp $
include $(top_srcdir)/cf/Makefile.am.common
SUFFIXES += .x
.x.c:
@cmp -s $< $@ 2> /dev/null || cp $< $@
CHECK_LOCAL = $(PROGRAMS)
check-local::
@foo='$(CHECK_LOCAL)'; \
if test "$$foo"; then \
failed=0; all=0; \
for i in $$foo; do \
all=`expr $$all + 1`; \
if ./$$i --version > /dev/null 2>&1; then \
echo "PASS: $$i"; \
else \
echo "FAIL: $$i"; \
failed=`expr $$failed + 1`; \
fi; \
done; \
if test "$$failed" -eq 0; then \
banner="All $$all tests passed"; \
else \
banner="$$failed of $$all tests failed"; \
fi; \
dashes=`echo "$$banner" | sed s/./=/g`; \
echo "$$dashes"; \
echo "$$banner"; \
echo "$$dashes"; \
test "$$failed" -eq 0; \
fi