From: Yann E. MORIN Date: Fri, 8 May 2020 08:32:20 +0000 (+0200) Subject: release: don't include temp files X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bee47598aa1f853df14f7edb51d8a7cadcfa9939;p=buildroot.git release: don't include temp files When we prepare the release, we generate the manual in various formats, so that it can be consulted locally without needing the miriads of tools needed to generate it. However, this creates the temporary .br2-external.* files in the output directory, and those end up in the release tarball. This is not a problem in practice, but is not clean. Run 'distclean' in the output directory, to get rid of everything but the generated documentation. Reported-by: Danomi Manchego Signed-off-by: Yann E. MORIN Cc: Peter Korsgaard Signed-off-by: Peter Korsgaard --- diff --git a/Makefile b/Makefile index 3aa4ba4532..2da34b5305 100644 --- a/Makefile +++ b/Makefile @@ -1190,7 +1190,7 @@ release: OUT = buildroot-$(BR2_VERSION) release: git archive --format=tar --prefix=$(OUT)/ HEAD > $(OUT).tar $(MAKE) O=$(OUT) manual-html manual-text manual-pdf - $(MAKE) O=$(OUT) clean + $(MAKE) O=$(OUT) distclean tar rf $(OUT).tar $(OUT) gzip -9 -c < $(OUT).tar > $(OUT).tar.gz bzip2 -9 -c < $(OUT).tar > $(OUT).tar.bz2