]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
tools/automake: do not delete libtool in clean targets
authorMichael Pratt <mcpratt@pm.me>
Sun, 6 Oct 2024 08:23:10 +0000 (04:23 -0400)
committerRobert Marko <robimarko@gmail.com>
Sat, 26 Jul 2025 12:38:08 +0000 (14:38 +0200)
For the building of some packages, it is helpful
to completely clean the packaged release copy of the source,
however this usually deletes libtool if used,
otherwise causing the need to run the bootstrap script twice.

Not deleting libtool allows compilation to continue directly
after cleaning pre-generated files in the package distribution.

Signed-off-by: Michael Pratt <mcpratt@pm.me>
Link: https://github.com/openwrt/openwrt/pull/16522
Signed-off-by: Robert Marko <robimarko@gmail.com>
tools/automake/patches/999-clean-am.patch

index 87a0d6f3f621ede84f5e62fe49832c721ee3dffb..a9642d1c79515d245fb9cf75f9a39f0d819ca41a 100644 (file)
  
  .PHONY: clean mostlyclean distclean maintainer-clean \
  clean-generic mostlyclean-generic distclean-generic maintainer-clean-generic
+--- a/lib/am/libtool.am
++++ b/lib/am/libtool.am
+@@ -25,4 +25,4 @@ clean-libtool:
+ ?TOPDIR_P?distclean-am: distclean-libtool
+ ?TOPDIR_P?distclean-libtool:
+-?TOPDIR_P?    -rm -f libtool config.lt
++?TOPDIR_P?    -touch libtool config.lt