Blame lib/Makefile.am

Packit 47b4ca
# Make Autoconf-related libraries.
Packit 47b4ca
Packit 47b4ca
# Copyright (C) 2001-2005, 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
SUBDIRS = Autom4te m4sugar autoconf autotest autoscan emacs
Packit 47b4ca
nodist_pkgdata_DATA = autom4te.cfg
Packit 47b4ca
EXTRA_DIST = autom4te.in freeze.mk
Packit 47b4ca
Packit 47b4ca
edit = sed \
Packit 47b4ca
	-e 's|@SHELL[@]|$(SHELL)|g' \
Packit 47b4ca
	-e 's|@PERL[@]|$(PERL)|g' \
Packit 47b4ca
	-e 's|@bindir[@]|$(bindir)|g' \
Packit 47b4ca
	-e 's|@pkgdatadir[@]|$(pkgdatadir)|g' \
Packit 47b4ca
	-e 's|@prefix[@]|$(prefix)|g' \
Packit 47b4ca
	-e 's|@autoconf-name[@]|'`echo autoconf | sed '$(transform)'`'|g' \
Packit 47b4ca
	-e 's|@autoheader-name[@]|'`echo autoheader | sed '$(transform)'`'|g' \
Packit 47b4ca
	-e 's|@autom4te-name[@]|'`echo autom4te | sed '$(transform)'`'|g' \
Packit 47b4ca
	-e 's|@M4[@]|$(M4)|g' \
Packit 47b4ca
	-e 's|@AWK[@]|$(AWK)|g' \
Packit 47b4ca
	-e 's|@VERSION[@]|$(VERSION)|g' \
Packit 47b4ca
	-e 's|@PACKAGE_NAME[@]|$(PACKAGE_NAME)|g'
Packit 47b4ca
Packit 47b4ca
# All the files below depend on Makefile so that they are rebuilt
Packit 47b4ca
# when the prefix, etc. changes. Unfortunately, suffix rules
Packit 47b4ca
# cannot have additional dependencies, so we have to use explicit rules.
Packit 47b4ca
CLEANFILES = autom4te.cfg
Packit 47b4ca
autom4te.cfg: $(srcdir)/autom4te.in Makefile
Packit 47b4ca
	rm -f autom4te.cfg autom4te.tmp
Packit 47b4ca
	$(edit) $(srcdir)/autom4te.in >autom4te.tmp
Packit 47b4ca
	chmod a-w autom4te.tmp
Packit 47b4ca
	mv autom4te.tmp autom4te.cfg