doc: mention tr issues in multi-byte locales
[autoconf.git] / bin / local.mk
blob91838ef23933e56772464f740d178491db2a851c
1 # Make Autoconf commands.
3 # Copyright (C) 1999-2007, 2009-2017, 2020-2024 Free Software
4 # Foundation, 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 3 of the License, or
9 # (at your option) 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, see <https://www.gnu.org/licenses/>.
19 bin_SCRIPTS = \
20 bin/autoconf \
21 bin/autoheader \
22 bin/autom4te \
23 bin/autoreconf \
24 bin/autoscan \
25 bin/autoupdate \
26 bin/ifnames
28 EXTRA_DIST += \
29 bin/autoconf.in \
30 bin/autoheader.in \
31 bin/autom4te.in \
32 bin/autoreconf.in \
33 bin/autoscan.in \
34 bin/autoupdate.in \
35 bin/ifnames.in
37 # Files that should be removed, but which Automake does not know.
38 MOSTLYCLEANFILES += $(bin_SCRIPTS) bin/*.tmp
40 ## ------------- ##
41 ## The scripts. ##
42 ## ------------- ##
44 ## All the scripts depend on Makefile so that they are rebuilt when the
45 ## prefix etc. changes. It took quite a while to have the rule correct,
46 ## don't break it!
47 ## Use chmod -w to prevent people from editing the wrong file by accident.
48 $(bin_SCRIPTS): Makefile
49 rm -f $@ $@.tmp
50 $(MKDIR_P) $(@D)
51 srcdir=''; \
52 test -f ./$@.in || srcdir=$(srcdir)/; \
53 $(edit) $${srcdir}$@.in >$@.tmp
54 chmod +x $@.tmp
55 chmod a-w $@.tmp
56 mv $@.tmp $@
58 bin/autoconf: bin/autoconf.in
59 bin/autoheader: $(srcdir)/bin/autoheader.in
60 bin/autom4te: $(srcdir)/bin/autom4te.in
61 bin/autoreconf: $(srcdir)/bin/autoreconf.in
62 bin/autoscan: $(srcdir)/bin/autoscan.in
63 bin/autoupdate: $(srcdir)/bin/autoupdate.in
64 bin/ifnames: $(srcdir)/bin/ifnames.in
67 ## --------------- ##
68 ## Building TAGS. ##
69 ## --------------- ##
71 TAGS_DEPENDENCIES = $(EXTRA_DIST)
73 letters = abcdefghijklmnopqrstuvwxyz
74 LETTERS = ABCDEFGHIJKLMNOPQRSTUVWXYZ
75 DIGITS = 0123456789
76 WORD_REGEXP = [$(LETTERS)$(letters)_][$(LETTERS)$(letters)$(DIGITS)_]*
77 ETAGS_PERL = --lang=perl \
78 bin/autoconf.in \
79 bin/autoheader.in \
80 bin/autom4te.in \
81 bin/autoreconf.in \
82 bin/autoscan.in \
83 bin/autoupdate.in \
84 bin/ifnames.in
86 ETAGS_ARGS += $(ETAGS_PERL)