Provide O(n) replacement macros for M4 1.4.x.
[autoconf.git] / lib / m4sugar / Makefile.am
blob98654a0acefd3b8d7e0fc1da53842a0a4d6a5c57
1 # Make Autoconf library for M4sugar.
3 # Copyright (C) 2001, 2002, 2006, 2007, 2008 Free Software Foundation, Inc.
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 3 of the License, or
8 # (at your option) any later version.
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.
15 # You should have received a copy of the GNU General Public License
16 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
18 m4sugarlibdir = $(pkgdatadir)/m4sugar
19 dist_m4sugarlib_DATA = m4sugar.m4 foreach.m4 m4sh.m4
20 nodist_m4sugarlib_DATA = version.m4 m4sugar.m4f m4sh.m4f
21 CLEANFILES = $(nodist_m4sugarlib_DATA)
23 ## ------------ ##
24 ## version.m4.  ##
25 ## ------------ ##
27 # The `:;' works around a redirected compound command bash exit status bug.
28 version.m4: Makefile
29         :;{ \
30           echo '# This file is part of -*- Autoconf -*-.' && \
31           echo '# Version of Autoconf.' && \
32           echo '# Copyright (C) 1999, 2000, 2001, 2002, 2006, 2007' && \
33           echo '# Free Software Foundation, Inc.' && \
34           echo  &&\
35           echo 'm4_define([m4_PACKAGE_NAME],      [$(PACKAGE_NAME)])' && \
36           echo 'm4_define([m4_PACKAGE_TARNAME],   [$(PACKAGE_TARNAME)])' && \
37           echo 'm4_define([m4_PACKAGE_VERSION],   [$(PACKAGE_VERSION)])' && \
38           echo 'm4_define([m4_PACKAGE_STRING],    [$(PACKAGE_STRING)])' && \
39           echo 'm4_define([m4_PACKAGE_BUGREPORT], [$(PACKAGE_BUGREPORT)])'; \
40         } > $@-t
41         mv $@-t $@
44 ## --------------- ##
45 ## Building TAGS.  ##
46 ## --------------- ##
48 TAGS_FILES = $(dist_m4sugarlib_DATA)
50 ETAGS_ARGS = $(ETAGS_FOR_AUTOCONF)
53 ## -------- ##
54 ## Checks.  ##
55 ## -------- ##
57 check-local: check-forbidden-patterns
58 forbidden_patterns = -e '^_*EOF' -e ' cmp '
59 forbidden_patterns_files = $(dist_m4sugarlib_DATA)
63 ## ------------------ ##
64 ## The frozen files.  ##
65 ## ------------------ ##
67 m4sugar.m4f: $(m4sugar_m4f_dependencies)
68 m4sh.m4f: $(m4sh_m4f_dependencies)
69 include ../freeze.mk