]> code.delx.au - gnu-emacs-elpa/commitdiff
Makefile: allow package and elpa targets to run without git
authorDavid Bremner <david@tethera.net>
Fri, 21 Aug 2015 12:28:20 +0000 (14:28 +0200)
committerDavid Bremner <david@tethera.net>
Fri, 4 Sep 2015 12:11:43 +0000 (09:11 -0300)
This is handy for people working from e.g. a zip or tar snapshot of the git
repo.

Makefile

index fada44430ca0c322e89974b367aeec13ba15eec5..015f3acba59880ba5138b024dd36b3b1cd091ccf 100644 (file)
--- 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; \