From: David Bremner Date: Fri, 21 Aug 2015 12:28:20 +0000 (+0200) Subject: Makefile: allow package and elpa targets to run without git X-Git-Url: https://code.delx.au/gnu-emacs-elpa/commitdiff_plain/679846ae6223d33dd83edbeaacf15d128caf09df?ds=sidebyside Makefile: allow package and elpa targets to run without git This is handy for people working from e.g. a zip or tar snapshot of the git repo. --- diff --git a/Makefile b/Makefile index fada44430..015f3acba 100644 --- a/Makefile +++ b/Makefile @@ -4,13 +4,13 @@ EMACS=emacs package: *.el @ver=`grep -o "Version: .*" company.el | cut -c 10-`; \ - tar cjvf company-$$ver.tar.bz2 --mode 644 `git ls-files '*.el' | xargs` + tar cjvf company-$$ver.tar.bz2 --mode 644 $$(find . -name \*.el) elpa: *.el @version=`grep -o "Version: .*" company.el | cut -c 10-`; \ dir=company-$$version; \ mkdir -p "$$dir"; \ - cp `git ls-files '*.el' | xargs` company-$$version; \ + cp $$(find . -name \*.el) company-$$version; \ echo "(define-package \"company\" \"$$version\" \ \"Modular in-buffer completion framework\")" \ > "$$dir"/company-pkg.el; \