summaryrefslogtreecommitdiffstats
path: root/emacs/.emacs.d/Makefile
diff options
context:
space:
mode:
authorGravatar Tom Willemse2015-07-08 12:38:23 +0200
committerGravatar Tom Willemse2015-07-08 12:38:23 +0200
commitf54d8a59305b6c628456c8ba8eb2459213c517d5 (patch)
tree8575ceef85204c53331d3c4db1b3fd6e9e55b37c /emacs/.emacs.d/Makefile
parente390a5dae43ed9472da8a66ce3d780fafdf57434 (diff)
downloaddotfiles-f54d8a59305b6c628456c8ba8eb2459213c517d5.tar.gz
dotfiles-f54d8a59305b6c628456c8ba8eb2459213c517d5.zip
Move my eshell prompt to separate module
To help with autoloading, also update the Makefile to create a `site-lisp/site-autoloads.el' file which is loaded by emacs.
Diffstat (limited to 'emacs/.emacs.d/Makefile')
-rw-r--r--emacs/.emacs.d/Makefile27
1 files changed, 22 insertions, 5 deletions
diff --git a/emacs/.emacs.d/Makefile b/emacs/.emacs.d/Makefile
index 687f646..b0701fb 100644
--- a/emacs/.emacs.d/Makefile
+++ b/emacs/.emacs.d/Makefile
@@ -1,7 +1,10 @@
-.PHONY: all site-lisp
-all: init2.elc init.elc site-lisp/oni-smt.elc site-lisp/appt-init.elc \
+SITE_LISPS = site-lisp/oni-smt.elc site-lisp/appt-init.elc \
site-lisp/jabber-init.elc site-lisp/org-init.elc \
- site-lisp/gnus-init.elc site-lisp/drd.elc
+ site-lisp/gnus-init.elc site-lisp/drd.elc \
+ site-lisp/oni-eshell-prompt.elc
+
+.PHONY: all site-lisp
+all: init2.elc init.elc $(SITE_LISPS) site-lisp/site-autoloads.el
%.elc: %.el
@echo "ELC $<"
@@ -12,15 +15,29 @@ init2.el: init.org org/intro.org
@echo "OBT $<"
@emacs -Q -batch -l "ob-tangle" -eval "(org-babel-tangle-file \"init.org\")"
+site-lisp/site-autoloads.el: $(SITE_LISPS)
+ @echo "GEN $@"
+ @cask exec emacs -Q -batch \
+ -eval "(setq generated-autoload-file \"$(CURDIR)/$@\")" \
+ -eval "(update-directory-autoloads \"$(CURDIR)/site-lisp/\")"
+
rudel:
git clone git://github.com/scymtym/rudel.git packages/rudel
emacs -Q --batch --visit packages/rudel/rudel-compile.el \
--eval "(eval-buffel)"
-clean:
+clean-byte-compiled:
+ rm -f $(SITE_LISPS) init2.elc init.elc
+
+clean-autoloads:
+ rm -f site-lisp/site-autoloads.el init2.el
+
+clean-export:
rm -rf _publish/*.*
-export: clean
+clean: clean-export clean-byte-compiled clean-generated
+
+export: clean-export
emacs -L $(CURDIR) -L ~/.emacs.d/vendor-lisp/org/lisp \
-L ~/.emacs.d/vendor-lisp/org/contrib/lisp -batch -l project.el \
-f org-publish-all