openwrt/tools/automake/patches
Michael Pratt 6d2bfe50d3 tools/automake: control all cleaning with clean variables
Automake previously makes rules for the target maintainer-clean
to remove both the contents of MAINTAINERCLEANFILES and BUILT_SOURCES.

In order to have finer control over what is removed,
let there only be a rule for deleting MAINTAINERCLEANFILES,
and set MAINTAINERCLEANFILES to a default value of BUILT_SOURCES
if only conditional or missing, and append BUILT_SOURCES if user-defined.

In order to maintain conditional values for MAINTAINERCLEANFILES
while keeping a default value, change the behavior of automake
to output unconditional definitions before conditions.

Signed-off-by: Michael Pratt <mcpratt@pm.me>
Link: https://github.com/openwrt/openwrt/pull/16522
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-07-26 14:38:08 +02:00
..
000-relocatable.patch tools/automake: update to 1.17 2025-07-26 14:38:07 +02:00
100-aclocal-skip-not-existing-directories.patch tools/automake: update to 1.17 2025-07-26 14:38:07 +02:00
101-do-not-require-files.patch tools/automake: update to 1.17 2025-07-26 14:38:07 +02:00
200-other-V-values-for-verbosity.patch tools/automake: update to 1.17 2025-07-26 14:38:07 +02:00
300-output-TRUE-cond-first.patch tools/automake: control all cleaning with clean variables 2025-07-26 14:38:08 +02:00
310-maintainer-clean-built_sources.patch tools/automake: control all cleaning with clean variables 2025-07-26 14:38:08 +02:00
999-clean-am.patch tools/automake: do not delete Makefile in clean targets 2025-07-26 14:38:08 +02:00