Blame lib/autoscan/Makefile.am

Packit 47b4ca
# Make Autoscan library.
Packit 47b4ca
Packit 47b4ca
# Copyright (C) 2001-2002, 2009-2012 Free Software Foundation, Inc.
Packit 47b4ca
Packit 47b4ca
# This program is free software: you can redistribute it and/or modify
Packit 47b4ca
# it under the terms of the GNU General Public License as published by
Packit 47b4ca
# the Free Software Foundation, either version 3 of the License, or
Packit 47b4ca
# (at your option) any later version.
Packit 47b4ca
Packit 47b4ca
# This program is distributed in the hope that it will be useful,
Packit 47b4ca
# but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 47b4ca
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 47b4ca
# GNU General Public License for more details.
Packit 47b4ca
Packit 47b4ca
# You should have received a copy of the GNU General Public License
Packit 47b4ca
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
Packit 47b4ca
Packit 47b4ca
autoscanlibdir = $(pkgdatadir)/autoscan
Packit 47b4ca
Packit 47b4ca
EXTRA_DIST = autoscan.pre
Packit 47b4ca
nodist_autoscanlib_DATA = autoscan.list
Packit 47b4ca
CLEANFILES = autoscan.list
Packit 47b4ca
Packit 47b4ca
## ------------------------ ##
Packit 47b4ca
## Building autoscan.list.  ##
Packit 47b4ca
## ------------------------ ##
Packit 47b4ca
Packit 47b4ca
## autoscan.list might change when autoconf.m4f sources change.
Packit 47b4ca
## Therefore we want the same dependencies as autoconf.m4f, which
Packit 47b4ca
## are listed in freeze.mk.  It also ensure that tests/autom4te
Packit 47b4ca
## is built (we need it in the command below).
Packit 47b4ca
include ../freeze.mk
Packit 47b4ca
Packit 47b4ca
autoscan.list: $(srcdir)/autoscan.pre $(autoconf_m4f_dependencies) Makefile.am
Packit 47b4ca
	echo '# Automatically Generated: do not edit this file' >autoscan.list
Packit 47b4ca
	sed '/^[#]/!q' $(srcdir)/autoscan.pre                  >>autoscan.list
Packit 47b4ca
	( \
Packit 47b4ca
	  sed -n '/^[^#]/p' $(srcdir)/autoscan.pre; \
Packit 47b4ca
	  $(MY_AUTOM4TE) --cache '' -M -l autoconf -t'AN_OUTPUT:$$1: $$2		$$3' \
Packit 47b4ca
	) | LC_ALL=C sort                                      >>autoscan.list