1 # Make Autoconf commands.
3 # Copyright (C) 1999-2007, 2009-2016 Free Software Foundation, Inc.
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.
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.
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/>.
36 # Files that should be removed, but which Automake does not know.
37 MOSTLYCLEANFILES
+= $(bin_SCRIPTS
) bin
/autoconf.in bin
/*.tmp
43 # autoconf is written in M4sh.
44 # FIXME: this target should depend on the frozen files below lib/m4sugar,
45 # otherwise autom4te may pick up a frozen m4sh.m4f from an earlier
46 # installation below the same $(prefix); work around this with --melt.
47 bin
/autoconf.in
: $(srcdir)/bin
/autoconf.
as $(m4sh_m4f_dependencies
)
48 $(MY_AUTOM4TE
) --language M4sh
--cache
'' \
49 --melt
$(srcdir)/bin
/autoconf.
as -o
$@
51 ## All the scripts depend on Makefile so that they are rebuilt when the
52 ## prefix etc. changes. It took quite a while to have the rule correct,
54 ## Use chmod -w to prevent people from editing the wrong file by accident.
55 $(bin_SCRIPTS
): Makefile
59 test -f .
/$@.in ||
srcdir=$(srcdir)/; \
60 $(edit
) $${srcdir}$@.in
>$@.tmp
65 bin
/autoconf
: bin
/autoconf.in
66 bin
/autoheader
: $(srcdir)/bin
/autoheader.in
67 bin
/autom4te
: $(srcdir)/bin
/autom4te.in
68 bin
/autoreconf
: $(srcdir)/bin
/autoreconf.in
69 bin
/autoscan
: $(srcdir)/bin
/autoscan.in
70 bin
/autoupdate
: $(srcdir)/bin
/autoupdate.in
71 bin
/ifnames
: $(srcdir)/bin
/ifnames.in
78 TAGS_DEPENDENCIES
= $(EXTRA_DIST
)
80 letters
= abcdefghijklmnopqrstuvwxyz
81 LETTERS
= ABCDEFGHIJKLMNOPQRSTUVWXYZ
83 WORD_REGEXP
= [$(LETTERS
)$(letters
)_
][$(LETTERS
)$(letters
)$(DIGITS
)_
]*
84 ETAGS_PERL
= --lang
=perl \
91 ETAGS_SH
= --lang
=none
--regex
='/\($(WORD_REGEXP)\)=/\1/' \
94 ETAGS_ARGS
+= $(ETAGS_PERL
) $(ETAGS_SH
)