branch: elpa/systemd
commit feb6dadd44df4fbe2c870c76e5eb5edd2b7d55af
Author: Mark Oteiza <[email protected]>
Commit: Mark Oteiza <[email protected]>
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