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

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

[nongnu] elpa/systemd feb6dad 007/131: add Makefile


From: ELPA Syncer
Subject: [nongnu] elpa/systemd feb6dad 007/131: add Makefile
Date: Sun, 29 Aug 2021 11:35:05 -0400 (EDT)

branch: elpa/systemd
commit feb6dadd44df4fbe2c870c76e5eb5edd2b7d55af
Author: Mark Oteiza <mvoteiza@udel.edu>
Commit: Mark Oteiza <mvoteiza@udel.edu>

    add Makefile
---
 Makefile | 21 +++++++++++++++++++++
 README   |  8 ++++++++
 2 files changed, 29 insertions(+)

diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..56bf300
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
+NAME = systemd-mode
+
+PREFIX = /usr/local
+datarootdir := $(PREFIX)/share
+emacsdir := $(datarootdir)/emacs/site-lisp
+
+EMACS = emacs
+
+all: $(NAME).elc
+
+clean:
+       $(RM) $(NAME).elc
+
+install:
+       install -d $(DESTDIR)$(emacsdir)/$(NAME)
+       install -m644 $(NAME).{el,elc} $(DESTDIR)$(emacsdir)/$(NAME)
+
+.el.elc:
+       $(EMACS) --batch -f batch-byte-compile $<
+
+.PHONY: all clean install
diff --git a/README b/README
index aabb90e..31dde08 100644
--- a/README
+++ b/README
@@ -2,3 +2,11 @@ systemd-mode.el
 ===============
 
 Major mode for editing systemd units in GNU Emacs.
+
+Installation
+------------
+
+To install, do
+
+  make
+  make install



reply via email to

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