autoconf/lib/autoscan/Makefile.am
Akim Demaille 7134f17d88 * lib/autoconf/autoscan.m4: New file.
* lib/autoconf/autoconf.m4: Include it.
* lib/autoconf/functions.m4: Use AN_FUNCTION for all the functions
that were listed in the original autoscan.list.
* lib/autoconf/headers.m4: Similarly with headers.
* lib/freeze.mk (autoconf_m4f_dependencies): Add autoscan.m4.
(.m4.m4f): Don't pass --prepend-include, since that's done by
tests/autom4te itself.
* lib/autoscan/Makefile.am: Include freeze.mk.
(autoscan.list): New target --this file is no longer a source.
(autoscan.pre): New file.
2002-09-28 14:06:07 +00:00

42 lines
1.6 KiB
Makefile

## Process this file with automake to create Makefile.in
## Copyright 2001, 2002 Free Software Foundation, Inc.
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2, or (at your option)
## any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
autoscanlibdir = $(pkgdatadir)/autoscan
dist_autoscanlib_DATA = autoscan.pre autoscan.list
## ------------------------ ##
## Building autoscan.list. ##
## ------------------------ ##
## autoscan.list might change when autoconf.m4f sources change.
## Therefore we want the same dependencies as autoconf.m4f, which
## are listed in freeze.mk. It also ensure that tests/autom4te
## is built (we need it in the command below).
include ../freeze.mk
autoscan.list: Makefile.am autoscan.pre $(autoconf_m4f_dependencies)
echo '# Automatically Generated: do not edit this file' > autoscan.list
sed '/^[#]/!q' autoscan.pre >>autoscan.list
( \
sed -n '/^[^#]/p' autoscan.pre; \
$(MY_AUTOM4TE) -M -l autoconf -t'AN_OUTPUT:$$1: $$2 $$3' \
) | sort >>autoscan.list