From 6443c8cad60f0ad98af37ca69d402a71dcf60f41 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Tue, 5 Mar 2019 18:34:32 +0545 Subject: [PATCH] Add LICENSE LICENSE.md CONTRIBUTING.md only if they exist --- build/rules/dist.mk | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/build/rules/dist.mk b/build/rules/dist.mk index 3149f624b3f5..1f1c8ece5894 100644 --- a/build/rules/dist.mk +++ b/build/rules/dist.mk @@ -28,7 +28,16 @@ endif # If not specified by the caller, then select some common doc files to put in the tarball. ifndef doc_files - doc_files=CHANGELOG.md CONTRIBUTING.md LICENSE README.md + doc_files=CHANGELOG.md README.md +ifneq ("$(wildcard LICENSE)","") + doc_files+=LICENSE +endif +ifneq ("$(wildcard LICENSE.md)","") + doc_files+=LICENSE.md +endif +ifneq ("$(wildcard CONTRIBUTING.md)","") + doc_files+=CONTRIBUTING.md +endif endif # If not specified by the caller, then select a "standard" set of dirs to put in the tarball.