diff options
-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. ## ## -------------- ## |