summaryrefslogtreecommitdiffstats
path: root/crypto/heimdal/Makefile.am.common
blob: d8452bd4a30def3c200a4c6bbe631fbe4fa6052d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# $Id: Makefile.am.common,v 1.3 1999/04/01 14:58:43 joda 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
OpenPOWER on IntegriCloud