diff options
author | Zheng Junjie <z572@z572.online> | 2025-06-26 11:46:50 +0800 |
---|---|---|
committer | Zheng Junjie <z572@z572.online> | 2025-06-27 15:36:41 +0800 |
commit | 10ffc93325c45d75528591a063b1f16e5b089b62 (patch) | |
tree | 67f2920a973f71ed26d127144ed4a8fa0bdc7f19 | |
parent | aad58447fc2e86b73ada8d864d3b0c38d08aba60 (diff) |
build: Do not generate 'CODEOWNERS' when cross-compiling.
Fixes: guix/guix#812
* Makefile.am (CODEOWNERS): wrap it with in_git_p and !CROSS_COMPILING.
Change-Id: I65389947d3065d470739ca1a12398551be2178c1
-rw-r--r-- | Makefile.am | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 8b33734f38..0c3c233e60 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1322,12 +1322,15 @@ download-po: .PHONY: download-po # Regenerate 'CODEOWNERS' when 'teams.scm' is modified so we don't forget. +if in_git_p +if !CROSS_COMPILING CODEOWNERS: etc/teams.scm scripts/guix ./etc/teams.scm codeowners > "$@.tmp" mv "$@.tmp" "$@" BUILT_SOURCES += CODEOWNERS - +endif +endif ## -------------- ## ## Silent rules. ## ## -------------- ## |