Blame lib/autoscan/Makefile.am

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