update Makefile

This commit is contained in:
Mark Oteiza
2015-04-15 17:37:36 -04:00
parent a46e81b0e9
commit c22a2ff4fe

View File

@@ -1,4 +1,4 @@
NAME = systemd-mode SRC = systemd.el systemd-company.el
PREFIX = /usr/local PREFIX = /usr/local
datarootdir := $(PREFIX)/share datarootdir := $(PREFIX)/share
@@ -6,16 +6,16 @@ emacsdir := $(datarootdir)/emacs/site-lisp
EMACS = emacs EMACS = emacs
all: $(NAME).elc all: $(SRC:.el=.elc)
clean: clean:
$(RM) $(NAME).elc $(RM) $(SRC:.el=.elc)
install: install:
install -d $(DESTDIR)$(emacsdir)/$(NAME) install -d $(DESTDIR)$(emacsdir)/systemd
install -m644 $(NAME).{el,elc} $(DESTDIR)$(emacsdir)/$(NAME) install -m644 $(SRC) $(SRC:.el=.elc) -t $(DESTDIR)$(emacsdir)/systemd
.el.elc: .el.elc:
$(EMACS) --batch -f batch-byte-compile $< $(EMACS) -L . --batch -f batch-byte-compile $<
.PHONY: all clean install .PHONY: all clean install