legacy-dotfiles/emacs/.emacs.d/Makefile

48 lines
1.4 KiB
Makefile
Raw Normal View History

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/oni-eshell-prompt.elc
.PHONY: all site-lisp
all: init2.elc init.elc $(SITE_LISPS) site-lisp/site-autoloads.el
2014-08-21 00:23:56 +02:00
%.elc: %.el
2015-04-08 15:15:36 +02:00
@echo "ELC $<"
2015-06-17 10:38:04 +02:00
@cask exec emacs -Q -batch -l package -eval "(byte-compile-file \"$<\")"
2014-08-21 00:23:56 +02:00
init.el: init2.el
2015-04-21 21:11:48 +02:00
init2.el: init.org org/intro.org
2015-04-08 15:15:36 +02:00
@echo "OBT $<"
@emacs -Q -batch -l "ob-tangle" -eval "(org-babel-tangle-file \"init.org\")"
2014-08-21 00:23:56 +02:00
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/\")"
2014-08-21 00:23:56 +02:00
rudel:
git clone git://github.com/scymtym/rudel.git packages/rudel
emacs -Q --batch --visit packages/rudel/rudel-compile.el \
--eval "(eval-buffel)"
clean-byte-compiled:
rm -f $(SITE_LISPS) init2.elc init.elc
clean-autoloads:
rm -f site-lisp/site-autoloads.el init2.el
clean-export:
2014-08-21 00:23:56 +02:00
rm -rf _publish/*.*
clean: clean-export clean-byte-compiled clean-generated
export: clean-export
2014-08-21 00:23:56 +02:00
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
publish: export
rsync -avuz --exclude=*~ --delete _publish/ \
ryuslash.org:public_html/orgweb/dotfiles/emacs