add Makefile

This commit is contained in:
Mark Oteiza 2014-12-28 13:20:49 -05:00
parent d58763e224
commit feb6dadd44
2 changed files with 29 additions and 0 deletions

21
Makefile Normal file
View File

@ -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

8
README
View File

@ -2,3 +2,11 @@ systemd-mode.el
===============
Major mode for editing systemd units in GNU Emacs.
Installation
------------
To install, do
make
make install