1 # Make Autoscan library.
3 # Copyright (C) 2001, 2002 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 2, or (at your option)
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, write to the Free Software
17 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20 autoscanlibdir = $(pkgdatadir)/autoscan
22 EXTRA_DIST = autoscan.pre
23 nodist_autoscanlib_DATA = autoscan.list
24 CLEANFILES = autoscan.list
26 ## ------------------------ ##
27 ## Building autoscan.list. ##
28 ## ------------------------ ##
30 ## autoscan.list might change when autoconf.m4f sources change.
31 ## Therefore we want the same dependencies as autoconf.m4f, which
32 ## are listed in freeze.mk. It also ensure that tests/autom4te
33 ## is built (we need it in the command below).
36 autoscan.list: $(srcdir)/autoscan.pre $(autoconf_m4f_dependencies) Makefile.am
37 echo '# Automatically Generated: do not edit this file' >autoscan.list
38 sed '/^[#]/!q' $(srcdir)/autoscan.pre >>autoscan.list
40 sed -n '/^[^#]/p' $(srcdir)/autoscan.pre; \
41 $(MY_AUTOM4TE) --cache '' -M -l autoconf -t'AN_OUTPUT:$$1: $$2 $$3' \
42 ) | LC_ALL=C sort >>autoscan.list