blob: 6b9177a572a76e7bf25282c320f466d7640d9b15 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
## Process this file with automake to create Makefile.in
m4sugarlibdir = $(pkgdatadir)/m4sugar
# We ship version.m4 so that it's in src. `autoconf' wants all the sources
# at the same place...
dist_m4sugarlib_DATA = version.m4 m4sugar.m4 m4sh.m4
EXTRA_DIST = version.in
## ------------ ##
## version.m4. ##
## ------------ ##
# - version.m4 needs to be updated only once, since it depends on
# configure.ac, not on the results of a 'configure' run.
# - It is guaranteed (with GNU Make) that when the version in configure.ac
# is changed, version.m4 is built only after the new version number is
# propagated to the Makefile. (Libtool uses the same guarantee.)
$(srcdir)/version.m4: $(srcdir)/version.in $(top_srcdir)/configure.ac
sed 's,@VERSION\@,$(VERSION),g' $(srcdir)/version.in >version.tm4
mv version.tm4 $(srcdir)/version.m4
## --------------- ##
## Building TAGS. ##
## --------------- ##
TAGS_FILES = $(dist_m4sugarlib_DATA)
ETAGS_ARGS = --lang=none \
--regex='/\(A[CU]_DEFUN\|m4_\(defun\|define\)\|define\)(\[\([^]]*\)\]/\3/'
## -------- ##
## Checks. ##
## -------- ##
check-local:
if (cd $(srcdir) && \
egrep '^_?EOF' $(dist_m4sugarlib_DATA)) >eof.log; then \
echo "ERROR: user EOF tags were used:" >&2; \
sed "s,^,$*.m4: ," <eof.log >&2; \
echo >&2; \
exit 1; \
else \
rm -f eof.log; \
fi
|