From 679846ae6223d33dd83edbeaacf15d128caf09df Mon Sep 17 00:00:00 2001 From: David Bremner Date: Fri, 21 Aug 2015 14:28:20 +0200 Subject: [PATCH] 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. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; \ -- 2.39.2