diff options
author | Maciej Barć <xgqt@gentoo.org> | 2022-12-13 11:45:32 +0100 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2022-12-13 11:45:32 +0100 |
commit | 21b7a3c44f19f3c9d15466ee2a955833518a88e4 (patch) | |
tree | 66043017ed1706d11a785c18859b6580a130e95a /Makefile | |
parent | Makefile: add install target for local installations (diff) | |
download | emacs-openrc-21b7a3c44f19f3c9d15466ee2a955833518a88e4.tar.gz emacs-openrc-21b7a3c44f19f3c9d15466ee2a955833518a88e4.tar.bz2 emacs-openrc-21b7a3c44f19f3c9d15466ee2a955833518a88e4.zip |
Makefile: update
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -1,7 +1,12 @@ +PWD ?= $(shell pwd) + +ELS = $(wildcard $(PWD)/*.el) +ELCS = $(ELS:.el=.elc) + EMACS := emacs -FIND := find +FIND := rm -f -EMACFLAGS := --batch -q --no-site-file +EMACFLAGS := --batch -q --no-site-file -L $(PWD) EMACSCMD = $(EMACS) $(EMACFLAGS) @@ -10,15 +15,16 @@ all: clean compile .PHONY: clean clean: - $(FIND) $(PWD) -iname "*.elc" -delete + $(RM) $(ELCS) %.elc: $(EMACSCMD) --eval "(byte-compile-file \"$(*).el\" 0)" .PHONY: compile -compile: openrc.elc +compile: $(ELCS) .PHONY: install install: compile $(EMACSCMD) \ - --eval "(require 'package)" --eval "(package-install-file \"$(PWD)\")" + --eval "(require 'package)" \ + --eval "(package-install-file \"$(PWD)\")" |