Skip to content

Commit 393cf16

Browse files
committed
Get rid of autom4te.cache directories, as far as possible.
1 parent 18d002c commit 393cf16

File tree

5 files changed

+23
-9
lines changed

5 files changed

+23
-9
lines changed

ChangeLog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
2017-07-15 Bruno Haible <bruno@clisp.org>
2+
3+
Get rid of autom4te.cache directories, as far as possible.
4+
* Makefile.devel (srclib/Makefile.in, aclocal.m4, configure,
5+
config.h.in): Remove autom4te.cache after invoking aclocal, autoconf,
6+
autoheader, automake.
7+
* preload/Makefile.devel (aclocal, configure): Likewise.
8+
19
2017-05-18 Bruno Haible <bruno@clisp.org>
210

311
* lib/relocatable.h: Update from gnulib.

Makefile.devel

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ srclib/Makefile.in : srclib/Makefile.am srclib/Makefile.gnulib aclocal.m4
7878
fi
7979
# Make sure we get new versions of files brought in by automake.
8080
(cd build-aux && rm -f ar-lib compile depcomp install-sh mdate-sh missing test-driver)
81-
$(AUTOMAKE) --gnits --add-missing --copy srclib/Makefile
81+
$(AUTOMAKE) --gnits --add-missing --copy srclib/Makefile && rm -rf autom4te.cache
8282

8383
gnulib-imported-files : force
8484
if test -n "$$GNULIB_TOOL"; then \
@@ -93,20 +93,20 @@ CONFIGURES = configure
9393
CONFIGURES_IN = configure.ac
9494

9595
aclocal.m4 : $(CONFIGURES_IN) srclib/Makefile.gnulib $(wildcard m4/*.m4) $(wildcard srcm4/*.m4)
96-
$(ACLOCAL) -I m4 -I srcm4 --output=$@ && touch $@
96+
$(ACLOCAL) -I m4 -I srcm4 --output=$@ && touch $@ && rm -rf autom4te.cache
9797

9898
configures : $(CONFIGURES)
9999

100100
AUTOCONF_FILES = aclocal.m4 $(wildcard m4/*.m4) $(wildcard srcm4/*.m4)
101101

102102
configure : configure.ac $(AUTOCONF_FILES)
103-
$(AUTOCONF)
103+
$(AUTOCONF) && rm -rf autom4te.cache
104104

105105
check-configures : $(CONFIGURES)
106106
set -e; for f in $(CONFIGURES); do bash -x -n $$f; done
107107

108108
config.h.in : configure.ac $(AUTOCONF_FILES)
109-
$(AUTOHEADER)
109+
$(AUTOHEADER) && rm -rf autom4te.cache
110110
touch $@
111111

112112

libcharset/ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2017-07-15 Bruno Haible <bruno@clisp.org>
2+
3+
Get rid of autom4te.cache directories, as far as possible.
4+
* Makefile.devel (autoconf/aclocal.m4, configure, config.h.in): Remove
5+
autom4te.cache after invoking aclocal, autoconf, autoheader.
6+
17
2016-12-14 Bruno Haible <bruno@clisp.org>
28

39
Avoid error during initial autogen.sh invocation.

libcharset/Makefile.devel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ all : configures include/localcharset.h.build.in
1313

1414
autoconf/aclocal.m4 : $(wildcard m4/*.m4)
1515
test -d autoconf || mkdir autoconf
16-
$(ACLOCAL) -I m4 --output=$@
16+
$(ACLOCAL) -I m4 --output=$@ && rm -rf autom4te.cache
1717

1818
configures : configure config.h.in
1919

2020
configure : configure.ac autoconf/aclocal.m4
21-
$(AUTOCONF) --include autoconf
21+
$(AUTOCONF) --include autoconf && rm -rf autom4te.cache
2222

2323
config.h.in : configure.ac autoconf/aclocal.m4
24-
$(AUTOHEADER) --include autoconf
24+
$(AUTOHEADER) --include autoconf && rm -rf autom4te.cache
2525
touch config.h.in
2626

2727
include/localcharset.h.build.in : include/localcharset.h.in include/export.h

preload/Makefile.devel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ RM = rm -f
1111
all : configures
1212

1313
aclocal.m4 : $(wildcard ../m4/*.m4)
14-
$(ACLOCAL) -I ../m4 -I ../srcm4 --output=$@
14+
$(ACLOCAL) -I ../m4 -I ../srcm4 --output=$@ && rm -rf autom4te.cache
1515

1616
configures : configure
1717

1818
configure : configure.ac aclocal.m4
19-
$(AUTOCONF)
19+
$(AUTOCONF) && rm -rf autom4te.cache
2020

2121
totally-clean : all
2222
rm -f aclocal.m4 configure

0 commit comments

Comments
 (0)