mirror of
https://github.com/immortalwrt/immortalwrt.git
synced 2025-08-07 22:06:25 +08:00

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>
29 lines
819 B
Diff
29 lines
819 B
Diff
--- a/lib/am/clean.am
|
|
+++ b/lib/am/clean.am
|
|
@@ -39,7 +39,7 @@ distclean-generic:
|
|
## If you change distclean here, you probably also want to change
|
|
## maintainer-clean below.
|
|
distclean:
|
|
- -rm -f %MAKEFILE%
|
|
+ -touch %MAKEFILE%
|
|
|
|
maintainer-clean-am: maintainer-clean-generic distclean-am
|
|
maintainer-clean-generic:
|
|
@@ -51,7 +51,7 @@ maintainer-clean-generic:
|
|
|
|
## See comment for distclean.
|
|
maintainer-clean:
|
|
- -rm -f %MAKEFILE%
|
|
+ -touch %MAKEFILE%
|
|
|
|
.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
|