[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/company f079bca 7/7: Merge pull request #1230 from yuga
From: |
ELPA Syncer |
Subject: |
[elpa] externals/company f079bca 7/7: Merge pull request #1230 from yugaego/makefile |
Date: |
Thu, 30 Sep 2021 16:57:09 -0400 (EDT) |
branch: externals/company
commit f079bca855eb83a59acf97fb428acf8a0e7ff55b
Merge: 5c84da8 b67a8b1
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: GitHub <noreply@github.com>
Merge pull request #1230 from yugaego/makefile
Makefile updates and fixes
---
Makefile | 33 ++++++++++++++++++---------------
1 file changed, 18 insertions(+), 15 deletions(-)
diff --git a/Makefile b/Makefile
index cd3e1d6..99b3646 100644
--- a/Makefile
+++ b/Makefile
@@ -1,23 +1,26 @@
-EMACS=emacs
+EMACS = emacs
-.PHONY: ert test test-batch
+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:
+ @echo Targets:
+ @for t in ${ALL_TARGETS}; do echo "- "$$t; done
package: *.el
- @ver=`grep -o "Version: .*" company.el | cut -c 10-`; \
- 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 $$(find . -name \*.el) company-$$version; \
- echo "(define-package \"company\" \"$$version\" \
- \"Modular in-buffer completion framework\")" \
- > "$$dir"/company-pkg.el; \
- tar cvf company-$$version.tar --mode 644 "$$dir"
+ @VERSION=$$(awk '/Version:/{print $$3;exit}' company.el); \
+ FILES=$$(find . \! -name .\* -a \( -maxdepth 1 -name \*.el -o -name
icons \) ); \
+ tar ${TAR_OPTIONS} company-$$VERSION.tar.bz2 $$FILES
clean:
- @rm -rf company-*/ company-*.tar company-*.tar.bz2 *.elc ert.el
test/*.elc
+ @rm -rf company-*.tar.bz2 *.elc test/*.elc
test:
${EMACS} -Q -nw -L . -l test/all.el \
- [elpa] externals/company updated (5c84da8 -> f079bca), ELPA Syncer, 2021/09/30
- [elpa] externals/company 02f0145 5/7: Update 'make clean' recipe, ELPA Syncer, 2021/09/30
- [elpa] externals/company b67a8b1 6/7: Update manual packaging, ELPA Syncer, 2021/09/30
- [elpa] externals/company 3c5ac38 1/7: Fix Phony targets, ELPA Syncer, 2021/09/30
- [elpa] externals/company ba6ad7e 3/7: Add make help target, ELPA Syncer, 2021/09/30
- [elpa] externals/company 25f2fe8 2/7: Remove outdated target elpa, ELPA Syncer, 2021/09/30
- [elpa] externals/company 7c25307 4/7: Fix Darwin compatibility of 'make package', ELPA Syncer, 2021/09/30
- [elpa] externals/company f079bca 7/7: Merge pull request #1230 from yugaego/makefile,
ELPA Syncer <=