Remove compile-lite task + simple-p option in doom/recompile
This commit is contained in:
parent
dc9133fcc7
commit
cd713291f3
2 changed files with 9 additions and 13 deletions
3
Makefile
3
Makefile
|
@ -20,9 +20,6 @@ autoloads: init.el
|
||||||
compile: init.el clean
|
compile: init.el clean
|
||||||
@$(EMACS) -l core/core.el -f 'doom/recompile'
|
@$(EMACS) -l core/core.el -f 'doom/recompile'
|
||||||
|
|
||||||
compile-lite: init.el clean
|
|
||||||
@$(EMACS) -l core/core.el --eval '(doom/recompile t)'
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@rm -fv init.elc
|
@rm -fv init.elc
|
||||||
@find {core,modules} -type f -iname '*.elc' -exec rm \-fv {} \;
|
@find {core,modules} -type f -iname '*.elc' -exec rm \-fv {} \;
|
||||||
|
|
|
@ -428,7 +428,7 @@ There should be a measurable benefit from this, but it may take a while."
|
||||||
(interactive)
|
(interactive)
|
||||||
;; Ensure all relevant config files are loaded. This way we don't need
|
;; Ensure all relevant config files are loaded. This way we don't need
|
||||||
;; eval-when-compile and require blocks scattered all over.
|
;; eval-when-compile and require blocks scattered all over.
|
||||||
(doom-initialize-packages t noninteractive)
|
(doom-initialize-packages (not noninteractive) noninteractive)
|
||||||
(let ((targets
|
(let ((targets
|
||||||
(append (list (expand-file-name "init.el" doom-emacs-dir)
|
(append (list (expand-file-name "init.el" doom-emacs-dir)
|
||||||
(expand-file-name "core.el" doom-core-dir))
|
(expand-file-name "core.el" doom-core-dir))
|
||||||
|
@ -436,7 +436,6 @@ There should be a measurable benefit from this, but it may take a while."
|
||||||
(file-expand-wildcards (expand-file-name "autoload/*.el" doom-core-dir))))
|
(file-expand-wildcards (expand-file-name "autoload/*.el" doom-core-dir))))
|
||||||
(n 0)
|
(n 0)
|
||||||
results)
|
results)
|
||||||
(unless simple-p
|
|
||||||
(dolist (path (doom--module-paths))
|
(dolist (path (doom--module-paths))
|
||||||
(nconc targets
|
(nconc targets
|
||||||
(cl-remove-if (lambda (file)
|
(cl-remove-if (lambda (file)
|
||||||
|
@ -444,7 +443,7 @@ There should be a measurable benefit from this, but it may take a while."
|
||||||
(or (string= fname ".")
|
(or (string= fname ".")
|
||||||
(string= fname ".."))))
|
(string= fname ".."))))
|
||||||
(reverse
|
(reverse
|
||||||
(directory-files-recursively path "\\.el$"))))))
|
(directory-files-recursively path "\\.el$")))))
|
||||||
(dolist (file targets)
|
(dolist (file targets)
|
||||||
(push (cons (file-relative-name file doom-emacs-dir)
|
(push (cons (file-relative-name file doom-emacs-dir)
|
||||||
(and (byte-recompile-file file nil 0)
|
(and (byte-recompile-file file nil 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue