branch: externals/company commit 7c253070417dd1cf011339c6b64597486bb054c8 Author: YE <y...@ego.team> Commit: YE <y...@ego.team>
Fix Darwin compatibility of 'make package' --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7dce400..d3b5855 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,13 @@ EMACS = emacs + ALL_TARGETS = help package clean test test-gui test-batch compile compile-warn +TAR_OPTIONS = cjvf +ifneq ($(shell uname -s), Darwin) + TAR_OPTIONS += --mode 644 +endif + + .PHONY: ${ALL_TARGETS} help: @@ -9,7 +16,7 @@ help: package: *.el @ver=`grep -o "Version: .*" company.el | cut -c 10-`; \ - tar cjvf company-$$ver.tar.bz2 --mode 644 $$(find . -name \*.el) + tar ${TAR_OPTIONS} company-$$ver.tar.bz2 $$(find . -name \*.el) clean: @rm -rf company-*/ company-*.tar.bz2 *.elc ert.el test/*.elc