add Makefile
This commit is contained in:
parent
d58763e224
commit
feb6dadd44
21
Makefile
Normal file
21
Makefile
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user