[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/scala-mode d8a141b 125/217: Makefile clean-up
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/scala-mode d8a141b 125/217: Makefile clean-up |
Date: |
Sun, 29 Aug 2021 11:30:57 -0400 (EDT) |
branch: elpa/scala-mode
commit d8a141b73095d6233572c341d8f0ec4437d914d6
Author: Heikki Vesalainen <heikkivesalainen@yahoo.com>
Commit: Heikki Vesalainen <heikkivesalainen@yahoo.com>
Makefile clean-up
---
Makefile | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/Makefile b/Makefile
index 7cdc5f7..af599f0 100644
--- a/Makefile
+++ b/Makefile
@@ -17,9 +17,8 @@ SOURCE_DIR = $(ROOT)
# Emacs Lisp
ELISP_COMMAND ?= emacs
-ELISP_OPTIONS += -batch -no-site-file
+ELISP_OPTIONS += -batch -no-site-file -q
ELISP_OPTIONS += -L $(ROOT)
-ELISP_OPTIONS += -f batch-byte-compile
ELISP_FILES += scala-mode2-lib
@@ -30,10 +29,10 @@ ELISP_FILES += scala-mode2-paragraph
ELISP_FILES += scala-mode2-fontlock
ELISP_FILES += scala-mode2-map
ELISP_FILES += scala-mode2-sbt
-ELISP_FILES += scala-mode2-pkg
-
ELISP_SOURCES += $(ELISP_FILES:%=$(SOURCE_DIR)/%.el)
+PKG_FILE += scala-mode2-pkg.el
+
##############################################################################
RM ?= rm -f
@@ -41,7 +40,7 @@ RMDIR ?= rmdir
TOUCH ?= touch
# Strip the version out of the pkg file
-VERSION = $(shell ${ELISP_COMMAND} --batch --eval '(princ
(format "%s\n" (car (cddr (read (find-file "scala-mode2-pkg.el"))))))' | grep
-v Loading)
+VERSION := $(shell ${ELISP_COMMAND} $(ELISP_OPTIONS) --eval
'(princ (format "%s\n" (nth 2 (read (find-file "scala-mode2-pkg.el")))))')
##############################################################################
# Commands
@@ -50,8 +49,8 @@ all: .latest-build
clean:
$(RM) *.elc .latest-* autoloads.el scala-mode2-$(VERSION).tar
- [ -d scala-mode2-$(VERSION) ] && $(RM) scala-mode2-$(VERSION)/*
- [ -d scala-mode2-$(VERSION) ] && $(RMDIR) scala-mode2-$(VERSION)
+ [ ! -d scala-mode2-$(VERSION) ] || $(RM) scala-mode2-$(VERSION)/*
+ [ ! -d scala-mode2-$(VERSION) ] || $(RMDIR) scala-mode2-$(VERSION)
.PHONY: all
.PHONY: clean
@@ -60,17 +59,17 @@ clean:
# Rules
.latest-build: $(ELISP_SOURCES)
- $(ELISP_COMMAND) $(ELISP_OPTIONS) $(ELISP_SOURCES)
+ $(ELISP_COMMAND) $(ELISP_OPTIONS) -f batch-byte-compile $(ELISP_SOURCES)
@$(TOUCH) $@
##############################################################################
autoloads: $(ELISP_SOURCES)
- $(ELISP_COMMAND) -batch -q --no-site-file --eval "(setq
make-backup-files nil)" --eval "(setq generated-autoload-file (expand-file-name
\"autoloads.el\"))" -f batch-update-autoloads `pwd`
+ $(ELISP_COMMAND) $(ELISP_OPTIONS) --eval "(setq make-backup-files nil)"
--eval "(setq generated-autoload-file (expand-file-name \"autoloads.el\"))" -f
batch-update-autoloads `pwd`
package:
mkdir -p scala-mode2-$(VERSION)
- cp $(ELISP_SOURCES) scala-mode2-$(VERSION)
+ cp $(ELISP_SOURCES) $(PKG_FILE) scala-mode2-$(VERSION)
tar cf scala-mode2-$(VERSION).tar scala-mode2-$(VERSION)
- [nongnu] elpa/scala-mode cc2db35 100/217: indent case body only if first case statement is on its own line, (continued)
- [nongnu] elpa/scala-mode cc2db35 100/217: indent case body only if first case statement is on its own line, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode e3f91eb 101/217: octal escapes for chars and strings, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 74e5194 108/217: sbt support for scala-mode2, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 4581995 111/217: defined find-tag-default-function, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 2e514f8 118/217: proper instructions for sbt-mode, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode cddd00c 119/217: provide a package target to make a marmalade compatible package, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode ecbed5f 121/217: use the existing ELISP_COMMAND instead of EMACSBIN, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode c53742a 122/217: add Marmalade instructions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 3df7da0 133/217: Merge pull request #66 from corruptmemory/improved-syntax, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 69e071e 140/217: scala-syntax:forward-modifiers: Unmatched [ or [^ error, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode d8a141b 125/217: Makefile clean-up,
ELPA Syncer <=
- [nongnu] elpa/scala-mode 34888c0 142/217: Update README.md, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode f03a582 141/217: Merge pull request #83 from ancane/master, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 461f9a5 134/217: Fix issue #63 and names with _ and reserved word, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode ababc73 151/217: remove interactive, update filename., ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 27efa44 019/217: updated README, added LICENSE, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode d6f8cee 135/217: scala 2.10 preamble, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 03cfbe4 148/217: Add types to index items., ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode ed645d2 153/217: move create index function for imenu to big setq with everything else., ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 618f0fb 163/217: remove 'scala-indent:indent-on-parentheses in preference of smartparens, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 56cba29 194/217: Fix bad syntax when `*/` is prefixed by an opcode. (#143), ELPA Syncer, 2021/08/29