commit:     f0e4de1afc2183db941fc1b65c2af80ceff50021
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 13 10:44:43 2022 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Tue Dec 13 10:44:43 2022 +0000
URL:        
https://gitweb.gentoo.org/proj/company-ebuild.git/commit/?id=f0e4de1a

Makefile: update

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 Makefile | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile
index 606ff5d..ecb9ff5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,10 @@
 PWD         ?= $(shell pwd)
 
+ELS          = $(wildcard $(PWD)/*.el)
+ELCS         = $(ELS:.el=.elc)
+
 EMACS       := emacs
-FIND        := find
+FIND        := rm -f
 
 EMACFLAGS   := --batch -q --no-site-file -L $(PWD)
 EMACSCMD     = $(EMACS) $(EMACFLAGS)
@@ -10,18 +13,15 @@ EMACSCMD     = $(EMACS) $(EMACFLAGS)
 .PHONY: all
 all: clean compile
 
-
 .PHONY: clean
 clean:
-       $(FIND) $(PWD) -iname "*.elc" -delete
-
+       $(RM) $(ELCS)
 
 %.elc:
        $(EMACSCMD) --eval "(byte-compile-file \"$(*).el\" 0)"
 
 .PHONY: compile
-compile: company-ebuild-custom.elc company-ebuild-keywords.elc 
company-ebuild.elc
-
+compile: $(ELCS)
 
 .PHONY: install
 install: compile

Reply via email to