update Makefile
This commit is contained in:
12
Makefile
12
Makefile
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user