2
0

Makefile.am 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Make Autoconf-related libraries.
  2. # Copyright (C) 2001-2005, 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. SUBDIRS = Autom4te m4sugar autoconf autotest autoscan emacs
  14. nodist_pkgdata_DATA = autom4te.cfg
  15. EXTRA_DIST = autom4te.in freeze.mk
  16. edit = sed \
  17. -e 's|@SHELL[@]|$(SHELL)|g' \
  18. -e 's|@PERL[@]|$(PERL)|g' \
  19. -e 's|@bindir[@]|$(bindir)|g' \
  20. -e 's|@pkgdatadir[@]|$(pkgdatadir)|g' \
  21. -e 's|@prefix[@]|$(prefix)|g' \
  22. -e 's|@autoconf-name[@]|'`echo autoconf | sed '$(transform)'`'|g' \
  23. -e 's|@autoheader-name[@]|'`echo autoheader | sed '$(transform)'`'|g' \
  24. -e 's|@autom4te-name[@]|'`echo autom4te | sed '$(transform)'`'|g' \
  25. -e 's|@M4[@]|$(M4)|g' \
  26. -e 's|@AWK[@]|$(AWK)|g' \
  27. -e 's|@VERSION[@]|$(VERSION)|g' \
  28. -e 's|@PACKAGE_NAME[@]|$(PACKAGE_NAME)|g'
  29. # All the files below depend on Makefile so that they are rebuilt
  30. # when the prefix, etc. changes. Unfortunately, suffix rules
  31. # cannot have additional dependencies, so we have to use explicit rules.
  32. CLEANFILES = autom4te.cfg
  33. autom4te.cfg: $(srcdir)/autom4te.in Makefile
  34. rm -f autom4te.cfg autom4te.tmp
  35. $(edit) $(srcdir)/autom4te.in >autom4te.tmp
  36. chmod a-w autom4te.tmp
  37. mv autom4te.tmp autom4te.cfg