1 | # Make Autoconf library for M4sugar.
|
---|
2 |
|
---|
3 | ## Copyright (C) 2001, 2002, 2006 Free Software Foundation, Inc.
|
---|
4 | ##
|
---|
5 | ## This program is free software; you can redistribute it and/or modify
|
---|
6 | ## it under the terms of the GNU General Public License as published by
|
---|
7 | ## the Free Software Foundation; either version 2, or (at your option)
|
---|
8 | ## any later version.
|
---|
9 | ##
|
---|
10 | ## This program is distributed in the hope that it will be useful,
|
---|
11 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
12 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
13 | ## GNU General Public License for more details.
|
---|
14 | ##
|
---|
15 | ## You should have received a copy of the GNU General Public License
|
---|
16 | ## along with this program; if not, write to the Free Software
|
---|
17 | ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
---|
18 | ## 02110-1301, USA.
|
---|
19 |
|
---|
20 | m4sugarlibdir = $(pkgdatadir)/m4sugar
|
---|
21 | dist_m4sugarlib_DATA = m4sugar.m4 m4sh.m4
|
---|
22 | nodist_m4sugarlib_DATA = version.m4 m4sugar.m4f m4sh.m4f
|
---|
23 | CLEANFILES = $(nodist_m4sugarlib_DATA)
|
---|
24 |
|
---|
25 | ## ------------ ##
|
---|
26 | ## version.m4. ##
|
---|
27 | ## ------------ ##
|
---|
28 |
|
---|
29 | version.m4: $(top_srcdir)/configure.ac
|
---|
30 | { \
|
---|
31 | echo '# This file is part of -*- Autoconf -*-.'; \
|
---|
32 | echo '# Version of Autoconf.'; \
|
---|
33 | echo '# Copyright (C) 1999, 2000, 2001, 2002'; \
|
---|
34 | echo '# Free Software Foundation, Inc.'; \
|
---|
35 | echo ;\
|
---|
36 | echo 'm4_define([m4_PACKAGE_NAME], [$(PACKAGE_NAME)])'; \
|
---|
37 | echo 'm4_define([m4_PACKAGE_TARNAME], [$(PACKAGE_TARNAME)])'; \
|
---|
38 | echo 'm4_define([m4_PACKAGE_VERSION], [$(PACKAGE_VERSION)])'; \
|
---|
39 | echo 'm4_define([m4_PACKAGE_STRING], [$(PACKAGE_STRING)])'; \
|
---|
40 | echo 'm4_define([m4_PACKAGE_BUGREPORT], [$(PACKAGE_BUGREPORT)])'; \
|
---|
41 | } >version.m4
|
---|
42 |
|
---|
43 |
|
---|
44 | ## --------------- ##
|
---|
45 | ## Building TAGS. ##
|
---|
46 | ## --------------- ##
|
---|
47 |
|
---|
48 | TAGS_FILES = $(dist_m4sugarlib_DATA)
|
---|
49 |
|
---|
50 | ETAGS_ARGS = $(ETAGS_FOR_AUTOCONF)
|
---|
51 |
|
---|
52 |
|
---|
53 | ## -------- ##
|
---|
54 | ## Checks. ##
|
---|
55 | ## -------- ##
|
---|
56 |
|
---|
57 | check-local: check-forbidden-patterns
|
---|
58 | forbidden_patterns = -e '^_*EOF' -e ' cmp '
|
---|
59 | forbidden_patterns_files = $(dist_m4sugarlib_DATA)
|
---|
60 |
|
---|
61 |
|
---|
62 |
|
---|
63 | ## ------------------ ##
|
---|
64 | ## The frozen files. ##
|
---|
65 | ## ------------------ ##
|
---|
66 |
|
---|
67 | m4sugar.m4f: $(m4sugar_m4f_dependencies)
|
---|
68 | m4sh.m4f: $(m4sh_m4f_dependencies)
|
---|
69 | include ../freeze.mk
|
---|