diff options
author | Tom Willemse | 2017-01-08 13:33:08 +0100 |
---|---|---|
committer | Tom Willemse | 2017-01-08 13:33:08 +0100 |
commit | 0ee856c6f35f9eda412534f9e2a7b5e4954e6af6 (patch) | |
tree | 4710d1224c8a8781d3462d0dbc364209f38bef10 /emacs/.emacs.d/GNUmakefile | |
parent | 562791b0ae258ba68851a025f954614fed1f0dd1 (diff) | |
parent | a6a88fd424ea806ce89ce6b2aa1e0d6664b918de (diff) | |
download | new-dotfiles-0ee856c6f35f9eda412534f9e2a7b5e4954e6af6.tar.gz new-dotfiles-0ee856c6f35f9eda412534f9e2a7b5e4954e6af6.zip |
Merge remote-tracking branch 'origin/index' into index
Diffstat (limited to 'emacs/.emacs.d/GNUmakefile')
-rw-r--r-- | emacs/.emacs.d/GNUmakefile | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/emacs/.emacs.d/GNUmakefile b/emacs/.emacs.d/GNUmakefile index e5171d4..bbe5a76 100644 --- a/emacs/.emacs.d/GNUmakefile +++ b/emacs/.emacs.d/GNUmakefile @@ -6,7 +6,8 @@ SITE_LISPS = $(addsuffix c,$(filter-out $(UNWANTED),$(wildcard site-lisp/*.el))) INIT_LISPS = $(addsuffix .elc,$(basename $(wildcard init/*.org))) VENDOR_DIRS = $(wildcard vendor-lisp/*) -all: $(SITE_LISPS) init.elc $(INIT_LISPS) $(AUTOLOADS_FILE) +.PHONE: all snippets +all: $(SITE_LISPS) init.elc $(INIT_LISPS) $(AUTOLOADS_FILE) snippets %.el: %.org $(call tangle,emacs-lisp) @@ -28,3 +29,17 @@ $(AUTOLOADS_FILE): $(SITE_LISPS) @$(EMACS) -batch \ -eval "(setq generated-autoload-file \"$(CURDIR)/$@\")" \ -eval "(update-directory-autoloads \"$(CURDIR)/site-lisp/\")" + +### Snippets + +SNIPPET_DIRS = $(wildcard snippets/*) +COMPILED_SNIPPETS = $(addsuffix /.yas-compiled-snippets.el, $(SNIPPET_DIRS)) + +%/.yas-compiled-snippets.el: %/* + @echo -e "\e[36mYAS\e[0m $(CURDIR)/snippets" + @$(EMACS) -batch \ + -eval "(package-initialize)" \ + -l yasnippet \ + -eval "(yas-compile-directory \"$(CURDIR)/snippets\")" + +snippets: $(COMPILED_SNIPPETS) |