emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/kotlin-mode 8e6dd578f2 154/162: Merge pull request #52 fro


From: ELPA Syncer
Subject: [nongnu] elpa/kotlin-mode 8e6dd578f2 154/162: Merge pull request #52 from taku0/add-makefile
Date: Sat, 29 Jan 2022 08:25:32 -0500 (EST)

branch: elpa/kotlin-mode
commit 8e6dd578f2b3d77ac33b6384d2bfe1b1f6799a1a
Merge: ab61099682 29730e7908
Author: Gregg Hernandez <greggory.hz@gmail.com>
Commit: GitHub <noreply@github.com>

    Merge pull request #52 from taku0/add-makefile
    
    Add Makefile
---
 Makefile | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)

diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000000..aa17634b0c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,56 @@
+CASK ?= cask
+EMACS ?= emacs
+VERSION := $(shell EMACS=$(EMACS) $(CASK) version)
+
+SRC = $(wildcard *.el)
+PACKAGE = dist/kotlin-mode-$(VERSION).tar
+
+.PHONY: help all deps package install test clean
+
+help:
+## Shows this message.
+# Process this Makefile with following filters
+#
+# - Remove empty line.
+# - Remove line starting with whitespace, dot, or uppercase letters.
+# - Remove line containing ## no-doc.
+# - Remove after colon if the line is not a comment line.
+# - Replace /^## / to "  ".
+# - Remove other comment lines.
+# - Insert newline before rules.
+       @sed -e '/^\s*$$/d; /^[ .A-Z]/d; /## no-doc/d; s/^\([^#][^:]*\):.*/\1/; 
s/^## /  /; /^#/d; s/^[^ ]/\n&/' Makefile
+
+all: package
+## Builds the package.
+
+deps:
+## Installs the dependencies.
+       $(CASK) install
+
+$(PACKAGE): $(SRC) deps ## no-doc
+       rm -rf dist
+       $(CASK) package
+
+package: $(PACKAGE)
+## Builds the package.
+
+install: package
+## Installs the package.
+       $(CASK) exec $(EMACS) --batch \
+         -l package \
+         -f package-initialize \
+         -f package-refresh-contents \
+         --eval '(package-install-file "$(PACKAGE)")'
+
+clean:
+## Cleans the dist directory and *.elc.
+       rm -rf dist *.elc
+
+test:
+## Tests the package.
+       $(CASK) exec $(EMACS) --batch -q \
+         --eval "(add-to-list 'load-path \""$(shell readlink -f .)"\")" \
+         --eval "(add-to-list 'load-path \""$(shell readlink -f .)"/test\")" \
+         -f batch-byte-compile \
+         *.el
+       cask exec ert-runner -L . -L test



reply via email to

[Prev in Thread] Current Thread [Next in Thread]