Remove site-lisp
Everything has been moved to other projects
This commit is contained in:
parent
172074dba6
commit
17a41e0a2d
2 changed files with 1 additions and 17 deletions
|
@ -3,34 +3,21 @@ EMACS := emacs
|
||||||
|
|
||||||
.SECONDARY:
|
.SECONDARY:
|
||||||
|
|
||||||
AUTOLOADS_FILE := site-lisp/oni-site-autoloads.el
|
|
||||||
UNWANTED := $(AUTOLOADS_FILE) site-lisp/flycheck_% site-lisp/flycheck-%
|
|
||||||
SITE_LISPS := $(filter-out $(UNWANTED),$(wildcard site-lisp/*.el))
|
|
||||||
COMPILED_SITE_LISPS := $(addsuffix c,$(SITE_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 $(AUTOLOADS_FILE) snippets
|
all: init.elc snippets
|
||||||
|
|
||||||
%.elc: %.el
|
%.elc: %.el
|
||||||
@echo -e "\e[31mELC\e[0m $<"
|
@echo -e "\e[31mELC\e[0m $<"
|
||||||
@$(EMACS) -batch \
|
@$(EMACS) -batch \
|
||||||
-directory "$(HOME)/.emacs.d/site-lisp" \
|
|
||||||
-directory "$(HOME)/.emacs.d/vendor-lisp/emacs-slack" \
|
-directory "$(HOME)/.emacs.d/vendor-lisp/emacs-slack" \
|
||||||
-directory "$(HOME)/.emacs.d/vendor-lisp/circe" \
|
-directory "$(HOME)/.emacs.d/vendor-lisp/circe" \
|
||||||
-directory "$(HOME)/.emacs.d/vendor-lisp/circe-serenity" \
|
-directory "$(HOME)/.emacs.d/vendor-lisp/circe-serenity" \
|
||||||
-eval "(package-initialize)" \
|
-eval "(package-initialize)" \
|
||||||
-eval "(byte-compile-file \"$<\")"
|
-eval "(byte-compile-file \"$<\")"
|
||||||
|
|
||||||
### Site Lisp
|
|
||||||
|
|
||||||
$(AUTOLOADS_FILE): $(COMPILED_SITE_LISPS)
|
|
||||||
@echo -e "\e[32mGEN\e[0m $@"
|
|
||||||
@$(EMACS) -batch \
|
|
||||||
-eval "(setq generated-autoload-file \"$(BASE_DIR)/$@\")" \
|
|
||||||
-eval "(update-directory-autoloads \"$(BASE_DIR)/site-lisp/\")"
|
|
||||||
|
|
||||||
### Snippets
|
### Snippets
|
||||||
|
|
||||||
SNIPPET_DIRS = $(wildcard snippets/*)
|
SNIPPET_DIRS = $(wildcard snippets/*)
|
||||||
|
|
|
@ -31,15 +31,12 @@
|
||||||
(let ((load-directory
|
(let ((load-directory
|
||||||
(file-name-directory
|
(file-name-directory
|
||||||
(or load-file-name byte-compile-current-file))))
|
(or load-file-name byte-compile-current-file))))
|
||||||
(add-to-list 'load-path (format "%ssite-lisp/" load-directory))
|
|
||||||
(add-to-list 'load-path (format "%sos-lisp/" load-directory))
|
(add-to-list 'load-path (format "%sos-lisp/" load-directory))
|
||||||
|
|
||||||
(mapc (lambda (d) (add-to-list 'load-path d))
|
(mapc (lambda (d) (add-to-list 'load-path d))
|
||||||
(directory-files
|
(directory-files
|
||||||
(format "%svendor-lisp/" load-directory) t "^[^.]"))))
|
(format "%svendor-lisp/" load-directory) t "^[^.]"))))
|
||||||
|
|
||||||
(load "oni-site-autoloads" :noerror :nomessage)
|
|
||||||
|
|
||||||
(require 'package)
|
(require 'package)
|
||||||
|
|
||||||
(eval-and-compile (package-initialize))
|
(eval-and-compile (package-initialize))
|
||||||
|
|
Loading…
Reference in a new issue