Makefile.am 1.6 KB

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