Skip to content

Commit e7e6961

Browse files
committed
build: follow-up on introducing custom m4 macros
Various "configure" commits by wferi recently introduced new compat/custom m4 macro files in m4 directory, which itself was, so far, assumed ephemeral (not strictly needed for reproducing the build successfully, i.e., bits that can be completely purged when cutting down the project files to the bone). Apparently, this assumption no longer holds so several places need to be adapted. Amonst others, m4 directory no longer needs to be reinsured in autogen.sh, and special care must be taken with .gitignore and maintainer-clean-local target of the main Makafile. Signed-off-by: Jan Pokorný <[email protected]>
1 parent f7ec9a0 commit e7e6961

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ autom4te.cache/
1616
config.status
1717
configure
1818
.libs
19-
m4
19+
20+
# ignore "libtoolized" m4 files, but keep our (custom-prefixed) ones
21+
/m4/*
22+
!/m4/ax_*.m4
23+
2024
libtool
2125
.version
2226
.tarball-version

Makefile.am

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ doxygen:
4747
dist-clean-local:
4848
rm -f autoconf automake autoheader
4949

50+
# this will also get rid of "libtoolized" m4 files
5051
maintainer-clean-local:
51-
rm -rf m4
5252
rm -f .version .tarball-version
53+
rm -f $(patsubst $(top_srcdir)/m4/ax_%,,$(wildcard $(top_srcdir)/m4/*.m4))
5354

5455
clean-local:
5556
rm -rf $(SPEC) $(DIST_ARCHIVES)

autogen.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
#!/bin/sh
22
# Run this to generate all the initial makefiles, etc.
3-
mkdir -p m4
43
autoreconf -i -v && echo Now run ./configure and make

0 commit comments

Comments
 (0)