2
## Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
2
## Copyright (C) 1992, 1993, 1994, 2006 Free Software Foundation, Inc.
4
4
## This program is free software; you can redistribute it and/or modify
5
5
## it under the terms of the GNU General Public License as published by
25
exec_prefix = @exec_prefix@
29
PATH_SEPARATOR = @PATH_SEPARATOR@
27
31
# Should be GNU awk, for the get-them script.
30
34
# Vern says that the first star is required around an Alpha make bug.
31
CHECKS = *[0-9][0-9].*
32
DISTFILES = Makefile.in get-them check-them stamp-checks incl.m4 foo
36
stamp-checks: get-them ../doc/m4.texinfo
37
rm -f $(srcdir)/$(CHECKS)
35
CHECKS = $(srcdir)/*[0-9][0-9][0-9].*
36
# Makefile.in is automatically distributed by automake.
37
DISTFILES = $(srcdir)/get-them $(srcdir)/check-them $(srcdir)/stamp-checks
39
all: $(srcdir)/stamp-checks
41
$(srcdir)/stamp-checks: $(srcdir)/get-them $(srcdir)/../doc/m4.texinfo
38
43
cd $(srcdir) && AWK=$(AWK) ./get-them ../doc/m4.texinfo
39
44
touch $(srcdir)/stamp-checks
49
install-dvi install-pdf install-ps install-html install-info:
46
PATH=`pwd`/../src:$$PATH; export PATH; \
47
cd $(srcdir) && ./check-them $(CHECKS)
53
check: $(srcdir)/stamp-checks
54
PATH=`pwd`/../src"$(PATH_SEPARATOR)"$$PATH; export PATH; \
55
$(srcdir)/check-them -I $(srcdir)/../examples $(CHECKS)
57
installcheck: $(srcdir)/stamp-checks
58
PATH='$(bindir)'"$(PATH_SEPARATOR)"$$PATH; export PATH; \
59
$(srcdir)/check-them -I $(srcdir)/../examples $(CHECKS)
59
rm -f $(CHECKS) stamp-checks
70
maintainer-clean realclean: distclean
71
rm -f $(CHECKS) $(srcdir)/stamp-checks
62
76
@echo "Copying distribution files"
63
@for file in $(DISTFILES); do \
64
ln $(srcdir)/$$file ../$(PACKAGE)-$(VERSION)/checks 2> /dev/null \
65
|| cp -p $(srcdir)/$$file ../$(PACKAGE)-$(VERSION)/checks; \
67
@for file in $(srcdir)/$(CHECKS); do \
68
ln $$file ../$(PACKAGE)-$(VERSION)/checks \
77
@for file in $(DISTFILES) $(CHECKS); do \
78
ln $$file ../$(PACKAGE)-$(VERSION)/checks 2> /dev/null \
69
79
|| cp -p $$file ../$(PACKAGE)-$(VERSION)/checks; \
72
Makefile: Makefile.in ../config.status
73
cd .. && CONFIG_FILES=checks/$@ CONFIG_HEADERS= ./config.status
82
Makefile: $(srcdir)/Makefile.in ../config.status
83
cd .. && ./config.status checks/$@
75
85
# Tell versions [3.59,3.63) of GNU make not to export all variables.
76
86
# Otherwise a system limit (for SysV at least) may be exceeded.