53 |
INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
54 |
INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
55 |
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ |
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ |
56 |
|
LIBOBJS = @LIBOBJS@ |
57 |
LIBS = @LIBS@ |
LIBS = @LIBS@ |
58 |
LTLIBOBJS = @LTLIBOBJS@ |
LTLIBOBJS = @LTLIBOBJS@ |
59 |
M4 = @M4@ |
M4 = @M4@ |
92 |
sysconfdir = @sysconfdir@ |
sysconfdir = @sysconfdir@ |
93 |
target_alias = @target_alias@ |
target_alias = @target_alias@ |
94 |
|
|
95 |
|
SUFFIXES = .m4 .m4f |
96 |
|
|
97 |
|
# Do not use AUTOM4TE here, since Makefile.maint (my-distcheck) |
98 |
|
# checks if we are independent of Autoconf by defining AUTOM4TE (and |
99 |
|
# others) to `false'. But we _ship_ tests/autom4te, so it doesn't |
100 |
|
# apply to us. |
101 |
|
MY_AUTOM4TE = $(top_builddir)/tests/autom4te |
102 |
|
|
103 |
|
AUTOM4TE_CFG = $(top_builddir)/lib/autom4te.cfg |
104 |
|
|
105 |
|
# Factor the dependencies between all the frozen files. |
106 |
|
# Some day we should explain to Automake how to use autom4te to compute |
107 |
|
# the dependencies... |
108 |
|
src_libdir = $(top_srcdir)/lib |
109 |
|
build_libdir = $(top_builddir)/lib |
110 |
|
|
111 |
|
m4f_dependencies = $(MY_AUTOM4TE) $(AUTOM4TE_CFG) |
112 |
|
|
113 |
|
m4sugar_m4f_dependencies = \ |
114 |
|
$(m4f_dependencies) \ |
115 |
|
$(src_libdir)/m4sugar/m4sugar.m4 \ |
116 |
|
$(build_libdir)/m4sugar/version.m4 |
117 |
|
|
118 |
|
|
119 |
|
m4sh_m4f_dependencies = \ |
120 |
|
$(m4sugar_m4f_dependencies) \ |
121 |
|
$(src_libdir)/m4sugar/m4sh.m4 |
122 |
|
|
123 |
|
|
124 |
|
autotest_m4f_dependencies = \ |
125 |
|
$(m4sh_m4f_dependencies) \ |
126 |
|
$(src_libdir)/autotest/autotest.m4 \ |
127 |
|
$(src_libdir)/autotest/general.m4 |
128 |
|
|
129 |
|
|
130 |
|
autoconf_m4f_dependencies = \ |
131 |
|
$(m4sh_m4f_dependencies) \ |
132 |
|
$(src_libdir)/autoconf/autoscan.m4 \ |
133 |
|
$(src_libdir)/autoconf/general.m4 \ |
134 |
|
$(src_libdir)/autoconf/autoheader.m4 \ |
135 |
|
$(src_libdir)/autoconf/autoupdate.m4 \ |
136 |
|
$(src_libdir)/autoconf/autotest.m4 \ |
137 |
|
$(src_libdir)/autoconf/status.m4 \ |
138 |
|
$(src_libdir)/autoconf/oldnames.m4 \ |
139 |
|
$(src_libdir)/autoconf/specific.m4 \ |
140 |
|
$(src_libdir)/autoconf/lang.m4 \ |
141 |
|
$(src_libdir)/autoconf/c.m4 \ |
142 |
|
$(src_libdir)/autoconf/fortran.m4 \ |
143 |
|
$(src_libdir)/autoconf/functions.m4 \ |
144 |
|
$(src_libdir)/autoconf/headers.m4 \ |
145 |
|
$(src_libdir)/autoconf/types.m4 \ |
146 |
|
$(src_libdir)/autoconf/libs.m4 \ |
147 |
|
$(src_libdir)/autoconf/programs.m4 \ |
148 |
|
$(src_libdir)/autoconf/autoconf.m4 |
149 |
|
|
150 |
|
|
151 |
|
ETAGS_FOR_M4 = \ |
152 |
|
--lang=none \ |
153 |
|
--regex='/\(m4_define\|define\)(\[\([^]]*\)\]/\2/' |
154 |
|
|
155 |
|
|
156 |
|
ETAGS_FOR_M4SUGAR = \ |
157 |
|
$(ETAGS_FOR_M4) \ |
158 |
|
--regex='/m4_defun(\[\([^]]*\)\]/\1/' |
159 |
|
|
160 |
|
|
161 |
|
ETAGS_FOR_AUTOCONF = \ |
162 |
|
$(ETAGS_FOR_M4SUGAR) \ |
163 |
|
--regex='/\(A[CU]_DEFUN\|AU_ALIAS\)(\[\([^]]*\)\]/\2/' \ |
164 |
|
--regex='/AN_\(FUNCTION\|HEADER\|IDENTIFIER\|LIBRARY\|MAKEVAR\|PROGRAM\)(\[\([^]]*\)\]/\2/' |
165 |
|
|
166 |
|
|
167 |
bin_SCRIPTS = autom4te \ |
bin_SCRIPTS = autom4te \ |
168 |
autoconf autoheader autoreconf ifnames autoscan autoupdate |
autoconf autoheader autoreconf ifnames autoscan autoupdate |
169 |
|
|
192 |
|
|
193 |
|
|
194 |
# autoconf is written in M4sh. |
# autoconf is written in M4sh. |
195 |
AUTOM4SH = $(top_builddir)/tests/autom4te --language M4sh |
AUTOM4SH = $(top_builddir)/tests/autom4te --language M4sh --cache '' |
196 |
|
|
197 |
TAGS_DEPENDENCIES = $(EXTRA_DIST) |
TAGS_DEPENDENCIES = $(EXTRA_DIST) |
198 |
|
|
215 |
SCRIPTS = $(bin_SCRIPTS) |
SCRIPTS = $(bin_SCRIPTS) |
216 |
|
|
217 |
DIST_SOURCES = |
DIST_SOURCES = |
218 |
DIST_COMMON = Makefile.am Makefile.in |
DIST_COMMON = $(srcdir)/../lib/freeze.mk Makefile.am Makefile.in |
219 |
all: all-am |
all: all-am |
220 |
|
|
221 |
.SUFFIXES: |
.SUFFIXES: |
222 |
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4) |
.SUFFIXES: .m4 .m4f |
223 |
|
$(srcdir)/Makefile.in: Makefile.am $(srcdir)/../lib/freeze.mk $(top_srcdir)/configure.ac $(ACLOCAL_M4) |
224 |
cd $(top_srcdir) && \ |
cd $(top_srcdir) && \ |
225 |
$(AUTOMAKE) --gnu bin/Makefile |
$(AUTOMAKE) --gnu bin/Makefile |
226 |
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
306 |
distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) |
distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) |
307 |
|
|
308 |
distdir: $(DISTFILES) |
distdir: $(DISTFILES) |
309 |
|
$(mkinstalldirs) $(distdir)/./../lib |
310 |
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ |
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ |
311 |
|
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ |
312 |
list='$(DISTFILES)'; for file in $$list; do \ |
list='$(DISTFILES)'; for file in $$list; do \ |
313 |
case $$file in \ |
case $$file in \ |
314 |
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ |
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ |
315 |
|
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ |
316 |
esac; \ |
esac; \ |
317 |
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ |
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ |
318 |
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ |
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ |
419 |
pdf-am ps ps-am tags uninstall uninstall-am \ |
pdf-am ps ps-am tags uninstall uninstall-am \ |
420 |
uninstall-binSCRIPTS uninstall-info-am |
uninstall-binSCRIPTS uninstall-info-am |
421 |
|
|
422 |
|
$(MY_AUTOM4TE): |
423 |
|
cd $(top_builddir)/tests && $(MAKE) $(AM_MAKEFLAGS) autom4te |
424 |
|
$(AUTOM4TE_CFG): |
425 |
|
cd $(top_builddir)/lib && $(MAKE) $(AM_MAKEFLAGS) autom4te.cfg |
426 |
|
|
427 |
|
# When processing the file with diversion disabled, there must be no |
428 |
|
# output but comments and empty lines. |
429 |
|
# If freezing produces output, something went wrong: a bad `divert', |
430 |
|
# or an improper paren etc. |
431 |
|
# It may happen that the output does not end with a end of line, hence |
432 |
|
# force an end of line when reporting errors. |
433 |
|
.m4.m4f: |
434 |
|
$(MY_AUTOM4TE) \ |
435 |
|
--language=$* \ |
436 |
|
--freeze \ |
437 |
|
--output=$@ |
438 |
|
|
439 |
|
# For parallel builds. |
440 |
|
$(build_libdir)/m4sugar/version.m4: |
441 |
|
cd $(build_libdir)/m4sugar && $(MAKE) $(AM_MAKEFLAGS) version.m4 |
442 |
|
|
443 |
|
check-forbidden-patterns: |
444 |
|
if (cd $(srcdir) && \ |
445 |
|
grep $(forbidden_patterns) $(forbidden_patterns_files)) \ |
446 |
|
>forbidden.log; then \ |
447 |
|
echo "ERROR: forbidden patterns were found:" >&2; \ |
448 |
|
sed "s,^,$*.m4: ," <forbidden.log >&2; \ |
449 |
|
echo >&2; \ |
450 |
|
exit 1; \ |
451 |
|
else \ |
452 |
|
rm -f forbidden.log; \ |
453 |
|
fi |
454 |
$(srcdir)/autoconf.in: $(srcdir)/autoconf.as $(m4sh_m4f_dependencies) |
$(srcdir)/autoconf.in: $(srcdir)/autoconf.as $(m4sh_m4f_dependencies) |
455 |
$(AUTOM4SH) $(srcdir)/autoconf.as -o $@ |
$(AUTOM4SH) $(srcdir)/autoconf.as -o $@ |
456 |
|
|