GNU bug report logs -
#73672
error in distclean and maintainer-clean from releases
Previous Next
Reported by: Michael Pratt <mcpratt <at> pm.me>
Date: Mon, 7 Oct 2024 03:45:02 UTC
Severity: normal
Done: Ileana Dumitrescu <ileanadumitrescu95 <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
After configuring with a release, on my system the variable $(LT_ARGZ_H) ends up being blank.
For building this is no problem, however, if I wanted to run the clean targets there is an error:
This command is intended for maintainers to use
it deletes files that may require special tools to rebuild.
test -z "libtool libtoolize libltdl/libltdl/ ./.version" || rm -f libtool libtoolize libltdl/libltdl/ ./.version
rm: cannot remove 'libltdl/libltdl/': Is a directory
make[4]: [Makefile:2003: maintainer-clean-generic] Error 1 (ignored)
even though it is allowed to pass, the rest of the rules do not run for that subdirectory "."
A quick patch can workaround this:
--- a/libltdl/ltdl.mk
+++ b/libltdl/ltdl.mk
@@ -134,7 +134,7 @@ EXTRA_DIST += libltdl/COPYING.LIB
## Gnulib Makefile.am snippets ##
## --------------------------- ##
-BUILT_SOURCES += libltdl/libltdl/$(LT_ARGZ_H)
+BUILT_SOURCES += $(if $(LT_ARGZ_H),libltdl/libltdl/$(LT_ARGZ_H))
EXTRA_DIST += libltdl/libltdl/lt__argz_.h \
libltdl/lt__argz.c
however this results in a warning:
libltdl/ltdl.mk:137: warning: if $(LT_ARGZ_H: non-POSIX variable name
libltdl/ltdl.mk:137: (probably a GNU make extension)
so probably there is a better way to fix it...
--
MCP
This bug report was last modified 218 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.