diff options
author | Maciej Barć <xgqt@gentoo.org> | 2022-12-13 11:45:09 +0100 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2022-12-13 11:45:09 +0100 |
commit | 059e27cd01ce26fd2389f8447115c3a361b6581d (patch) | |
tree | ca273323748dd1de2c2d64ae6a20ff623c596c07 | |
parent | *: port (diff) | |
download | emacs-eix-059e27cd01ce26fd2389f8447115c3a361b6581d.tar.gz emacs-eix-059e27cd01ce26fd2389f8447115c3a361b6581d.tar.bz2 emacs-eix-059e27cd01ce26fd2389f8447115c3a361b6581d.zip |
Makefile: update
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
-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: eix.elc +compile: $(ELCS) .PHONY: install install: compile $(EMACSCMD) \ - --eval "(require 'package)" --eval "(package-install-file \"$(PWD)\")" + --eval "(require 'package)" \ + --eval "(package-install-file \"$(PWD)\")" |