93 |
|
|
94 |
autoscanlibdir = $(pkgdatadir)/autoscan |
autoscanlibdir = $(pkgdatadir)/autoscan |
95 |
|
|
96 |
dist_autoscanlib_DATA = autoscan.list |
dist_autoscanlib_DATA = autoscan.pre autoscan.list |
97 |
|
|
98 |
|
SUFFIXES = .m4 .m4f |
99 |
|
|
100 |
|
# Do not use AUTOM4TE here, since Makefile.maint (my-distcheck) |
101 |
|
# checks if we are independent of Autoconf by defining AUTOM4TE (and |
102 |
|
# others) to `false'. But we _ship_ tests/autom4te, so it doesn't |
103 |
|
# apply to us. |
104 |
|
MY_AUTOM4TE = $(top_builddir)/tests/autom4te |
105 |
|
|
106 |
|
AUTOM4TE_CFG = $(top_builddir)/lib/autom4te.cfg |
107 |
|
|
108 |
|
# Factor the dependencies between all the frozen files. |
109 |
|
# Some day we should explain to Automake how to use autom4te to compute |
110 |
|
# the dependencies... |
111 |
|
src_libdir = $(top_srcdir)/lib |
112 |
|
build_libdir = $(top_builddir)/lib |
113 |
|
|
114 |
|
m4f_dependencies = $(MY_AUTOM4TE) $(AUTOM4TE_CFG) |
115 |
|
|
116 |
|
m4sugar_m4f_dependencies = \ |
117 |
|
$(m4f_dependencies) \ |
118 |
|
$(src_libdir)/m4sugar/m4sugar.m4 \ |
119 |
|
$(build_libdir)/m4sugar/version.m4 |
120 |
|
|
121 |
|
|
122 |
|
m4sh_m4f_dependencies = \ |
123 |
|
$(m4sugar_m4f_dependencies) \ |
124 |
|
$(src_libdir)/m4sugar/m4sh.m4 |
125 |
|
|
126 |
|
|
127 |
|
autotest_m4f_dependencies = \ |
128 |
|
$(m4sh_m4f_dependencies) \ |
129 |
|
$(src_libdir)/autotest/autotest.m4 \ |
130 |
|
$(src_libdir)/autotest/general.m4 |
131 |
|
|
132 |
|
|
133 |
|
autoconf_m4f_dependencies = \ |
134 |
|
$(m4sh_m4f_dependencies) \ |
135 |
|
$(src_libdir)/autoconf/autoscan.m4 \ |
136 |
|
$(src_libdir)/autoconf/general.m4 \ |
137 |
|
$(src_libdir)/autoconf/autoheader.m4 \ |
138 |
|
$(src_libdir)/autoconf/autoupdate.m4 \ |
139 |
|
$(src_libdir)/autoconf/autotest.m4 \ |
140 |
|
$(src_libdir)/autoconf/status.m4 \ |
141 |
|
$(src_libdir)/autoconf/oldnames.m4 \ |
142 |
|
$(src_libdir)/autoconf/specific.m4 \ |
143 |
|
$(src_libdir)/autoconf/lang.m4 \ |
144 |
|
$(src_libdir)/autoconf/c.m4 \ |
145 |
|
$(src_libdir)/autoconf/fortran.m4 \ |
146 |
|
$(src_libdir)/autoconf/functions.m4 \ |
147 |
|
$(src_libdir)/autoconf/headers.m4 \ |
148 |
|
$(src_libdir)/autoconf/types.m4 \ |
149 |
|
$(src_libdir)/autoconf/libs.m4 \ |
150 |
|
$(src_libdir)/autoconf/programs.m4 \ |
151 |
|
$(src_libdir)/autoconf/autoconf.m4 |
152 |
|
|
153 |
subdir = lib/autoscan |
subdir = lib/autoscan |
154 |
mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs |
mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs |
155 |
CONFIG_CLEAN_FILES = |
CONFIG_CLEAN_FILES = |
156 |
DIST_SOURCES = |
DIST_SOURCES = |
157 |
DATA = $(dist_autoscanlib_DATA) |
DATA = $(dist_autoscanlib_DATA) |
158 |
|
|
159 |
DIST_COMMON = $(dist_autoscanlib_DATA) Makefile.am Makefile.in |
DIST_COMMON = $(dist_autoscanlib_DATA) $(srcdir)/../freeze.mk \ |
160 |
|
Makefile.am Makefile.in |
161 |
all: all-am |
all: all-am |
162 |
|
|
163 |
.SUFFIXES: |
.SUFFIXES: |
164 |
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4) |
.SUFFIXES: .m4 .m4f |
165 |
|
$(srcdir)/Makefile.in: Makefile.am $(srcdir)/../freeze.mk $(top_srcdir)/configure.ac $(ACLOCAL_M4) |
166 |
cd $(top_srcdir) && \ |
cd $(top_srcdir) && \ |
167 |
$(AUTOMAKE) --gnu lib/autoscan/Makefile |
$(AUTOMAKE) --gnu lib/autoscan/Makefile |
168 |
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
198 |
distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) |
distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) |
199 |
|
|
200 |
distdir: $(DISTFILES) |
distdir: $(DISTFILES) |
201 |
|
$(mkinstalldirs) $(distdir)/$(srcdir)/.. |
202 |
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ |
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ |
203 |
list='$(DISTFILES)'; for file in $$list; do \ |
list='$(DISTFILES)'; for file in $$list; do \ |
204 |
case $$file in \ |
case $$file in \ |
308 |
pdf-am ps ps-am uninstall uninstall-am \ |
pdf-am ps ps-am uninstall uninstall-am \ |
309 |
uninstall-dist_autoscanlibDATA uninstall-info-am |
uninstall-dist_autoscanlibDATA uninstall-info-am |
310 |
|
|
311 |
|
$(MY_AUTOM4TE): |
312 |
|
cd $(top_builddir)/tests && $(MAKE) $(AM_MAKEFLAGS) autom4te |
313 |
|
$(AUTOM4TE_CFG): |
314 |
|
cd $(top_builddir)/lib && $(MAKE) $(AM_MAKEFLAGS) autom4te.cfg |
315 |
|
|
316 |
|
# When processing the file with diversion disabled, there must be no |
317 |
|
# output but comments and empty lines. |
318 |
|
# If freezing produces output, something went wrong: a bad `divert', |
319 |
|
# or an improper paren etc. |
320 |
|
# It may happen that the output does not end with a end of line, hence |
321 |
|
# force an end of line when reporting errors. |
322 |
|
.m4.m4f: |
323 |
|
$(MY_AUTOM4TE) \ |
324 |
|
--language=$* \ |
325 |
|
--freeze \ |
326 |
|
--output=$@ |
327 |
|
|
328 |
|
# For parallel builds. |
329 |
|
$(build_libdir)/m4sugar/version.m4: |
330 |
|
cd $(build_libdir)/m4sugar && $(MAKE) $(AM_MAKEFLAGS) version.m4 |
331 |
|
|
332 |
|
autoscan.list: Makefile.am autoscan.pre $(autoconf_m4f_dependencies) |
333 |
|
echo '# Automatically Generated: do not edit this file' > autoscan.list |
334 |
|
sed '/^[#]/!q' autoscan.pre >>autoscan.list |
335 |
|
( \ |
336 |
|
sed -n '/^[^#]/p' autoscan.pre; \ |
337 |
|
$(MY_AUTOM4TE) -M -l autoconf -t'AN_OUTPUT:$$1: $$2 $$3' \ |
338 |
|
) | sort >>autoscan.list |
339 |
# Tell versions [3.59,3.63) of GNU make to not export all variables. |
# Tell versions [3.59,3.63) of GNU make to not export all variables. |
340 |
# Otherwise a system limit (for SysV at least) may be exceeded. |
# Otherwise a system limit (for SysV at least) may be exceeded. |
341 |
.NOEXPORT: |
.NOEXPORT: |