Makefile.am revision 1.1.1.1
1# Make Autoconf-related libraries. 2 3# Copyright (C) 2001-2005, 2009-2012 Free Software Foundation, Inc. 4 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 3 of the License, or 8# (at your option) any later version. 9 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. 14 15# You should have received a copy of the GNU General Public License 16# along with this program. If not, see <http://www.gnu.org/licenses/>. 17 18SUBDIRS = Autom4te m4sugar autoconf autotest autoscan emacs 19nodist_pkgdata_DATA = autom4te.cfg 20EXTRA_DIST = autom4te.in freeze.mk 21 22edit = sed \ 23 -e 's|@SHELL[@]|$(SHELL)|g' \ 24 -e 's|@PERL[@]|$(PERL)|g' \ 25 -e 's|@bindir[@]|$(bindir)|g' \ 26 -e 's|@pkgdatadir[@]|$(pkgdatadir)|g' \ 27 -e 's|@prefix[@]|$(prefix)|g' \ 28 -e 's|@autoconf-name[@]|'`echo autoconf | sed '$(transform)'`'|g' \ 29 -e 's|@autoheader-name[@]|'`echo autoheader | sed '$(transform)'`'|g' \ 30 -e 's|@autom4te-name[@]|'`echo autom4te | sed '$(transform)'`'|g' \ 31 -e 's|@M4[@]|$(M4)|g' \ 32 -e 's|@AWK[@]|$(AWK)|g' \ 33 -e 's|@VERSION[@]|$(VERSION)|g' \ 34 -e 's|@PACKAGE_NAME[@]|$(PACKAGE_NAME)|g' 35 36# All the files below depend on Makefile so that they are rebuilt 37# when the prefix, etc. changes. Unfortunately, suffix rules 38# cannot have additional dependencies, so we have to use explicit rules. 39CLEANFILES = autom4te.cfg 40autom4te.cfg: $(srcdir)/autom4te.in Makefile 41 rm -f autom4te.cfg autom4te.tmp 42 $(edit) $(srcdir)/autom4te.in >autom4te.tmp 43 chmod a-w autom4te.tmp 44 mv autom4te.tmp autom4te.cfg 45