Skip to content

Commit

Permalink
Add LICENSE LICENSE.md CONTRIBUTING.md only if they exist
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed Mar 24, 2019
1 parent fb7ec17 commit ece4ec6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion build/rules/dist.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ece4ec6

Please sign in to comment.