(mandoc_template): also fix no- prefix in .Sh OPTIONS
[heimdal.git] / Makefile.am.common
blobf772b9a804d6cf1233b5750ced2d167614791894
1 # $Id$
3 include $(top_srcdir)/cf/Makefile.am.common
5 SUFFIXES += .x
7 .x.c:
8         @cmp -s $< $@ 2> /dev/null || cp $< $@
10 CHECK_LOCAL = $(PROGRAMS)
12 check-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