Fix compilation of .el files

This commit is contained in:
Tom Willemse 2018-06-19 10:40:52 -07:00
parent 0179fa3abe
commit eada3961e6

View file

@ -7,14 +7,14 @@ AUTOLOADS_FILE := site-lisp/site-autoloads.el
UNWANTED := $(AUTOLOADS_FILE) site-lisp/flycheck_% site-lisp/flycheck-% UNWANTED := $(AUTOLOADS_FILE) site-lisp/flycheck_% site-lisp/flycheck-%
SITE_LISPS := $(filter-out $(UNWANTED),$(wildcard site-lisp/*.el)) SITE_LISPS := $(filter-out $(UNWANTED),$(wildcard site-lisp/*.el))
COMPILED_SITE_LISPS := $(addsuffix c,$(SITE_LISPS)) COMPILED_SITE_LISPS := $(addsuffix c,$(SITE_LISPS))
INIT_LISPS := init/oni-org-init.el init/oni-js2-init.el init/oni-gnus-init.el \ INIT_LISPS := $(wildcard init/*.el)
init/oni-cmake-init.el init/oni-cpp-init.el $(wildcard init/*.el)
COMPILED_INIT_LISPS := $(addsuffix c,$(INIT_LISPS)) COMPILED_INIT_LISPS := $(addsuffix c,$(INIT_LISPS))
VENDOR_DIRS := $(wildcard vendor-lisp/*) VENDOR_DIRS := $(wildcard vendor-lisp/*)
BASE_DIR := $(CURDIR) BASE_DIR := $(CURDIR)
.PHONY: all snippets .PHONY: all snippets
all: $(COMPILED_SITE_LISPS) init.elc $(INIT_LISPS) $(AUTOLOADS_FILE) snippets all: $(COMPILED_SITE_LISPS) init.elc $(COMPILED_INIT_LISPS) \
$(AUTOLOADS_FILE) snippets
%.elc: %.el %.elc: %.el
@echo -e "\e[31mELC\e[0m $<" @echo -e "\e[31mELC\e[0m $<"