* Makefile.am: Put only a single '#' into the copyright notice,
[autoconf.git] / lib / Makefile.am
blobe37e41fd407770cddcd7b9be18cfa6c37aa0c97d
1 # Make Autoconf-related libraries.
3 # Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation,
4 # Inc.
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2, or (at your option)
9 # any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19 # 02110-1301, USA.
21 SUBDIRS = Autom4te m4sugar autoconf autotest autoscan emacs
22 nodist_pkgdata_DATA = autom4te.cfg
23 EXTRA_DIST = autom4te.in freeze.mk
25 edit = sed \
26         -e 's|@SHELL[@]|$(SHELL)|g' \
27         -e 's|@PERL[@]|$(PERL)|g' \
28         -e 's|@bindir[@]|$(bindir)|g' \
29         -e 's|@datadir[@]|$(pkgdatadir)|g' \
30         -e 's|@prefix[@]|$(prefix)|g' \
31         -e 's|@autoconf-name[@]|'`echo autoconf | sed '$(transform)'`'|g' \
32         -e 's|@autoheader-name[@]|'`echo autoheader | sed '$(transform)'`'|g' \
33         -e 's|@autom4te-name[@]|'`echo autom4te | sed '$(transform)'`'|g' \
34         -e 's|@M4[@]|$(M4)|g' \
35         -e 's|@AWK[@]|$(AWK)|g' \
36         -e 's|@VERSION[@]|$(VERSION)|g' \
37         -e 's|@PACKAGE_NAME[@]|$(PACKAGE_NAME)|g'
39 # All the files below depend on Makefile so that they are rebuilt
40 # when the prefix, etc. changes. Unfortunately, suffix rules
41 # cannot have additional dependencies, so we have to use explicit rules.
42 CLEANFILES = autom4te.cfg
43 autom4te.cfg: $(srcdir)/autom4te.in Makefile
44         rm -f autom4te.cfg autom4te.tmp
45         $(edit) $(srcdir)/autom4te.in >autom4te.tmp
46         chmod a-w autom4te.tmp
47         mv autom4te.tmp autom4te.cfg