xref: /freebsd/crypto/heimdal/Makefile.am.common (revision 1b6c76a2fe091c74f08427e6c870851025a9cf67)
1# $Id: Makefile.am.common,v 1.3 1999/04/01 14:58:43 joda Exp $
2
3include $(top_srcdir)/cf/Makefile.am.common
4
5SUFFIXES += .x
6
7.x.c:
8	@cmp -s $< $@ 2> /dev/null || cp $< $@
9
10CHECK_LOCAL = $(PROGRAMS)
11
12check-local::
13	@foo='$(CHECK_LOCAL)'; \
14	  if test "$$foo"; then \
15	  failed=0; all=0; \
16	  for i in $$foo; do \
17	    all=`expr $$all + 1`; \
18	    if ./$$i --version > /dev/null 2>&1; then \
19	      echo "PASS: $$i"; \
20	    else \
21	      echo "FAIL: $$i"; \
22	      failed=`expr $$failed + 1`; \
23	    fi; \
24	  done; \
25	  if test "$$failed" -eq 0; then \
26	    banner="All $$all tests passed"; \
27	  else \
28	    banner="$$failed of $$all tests failed"; \
29	  fi; \
30	  dashes=`echo "$$banner" | sed s/./=/g`; \
31	  echo "$$dashes"; \
32	  echo "$$banner"; \
33	  echo "$$dashes"; \
34	  test "$$failed" -eq 0; \
35	fi
36