aboutsummaryrefslogtreecommitdiff
path: root/emacs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/Makefile')
-rw-r--r--emacs/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/emacs/Makefile b/emacs/Makefile
index 1c29533..3f9309c 100644
--- a/emacs/Makefile
+++ b/emacs/Makefile
@@ -1,6 +1,14 @@
+LOAD = '(let ((asdf:*user-cache* "/tmp") \
+ (asdf:*central-registry* (list (truename "..")))) \
+ (asdf:load-system "consfigurator"))'
+
SUBSTITUTE = 'BEGIN { open FH, "<", "put-forms.el"; \
chomp($$forms = join "", map s/^/ /r, grep /^\(put/, <FH>) } \
s/ \@putforms@/$$forms/'
consfigurator.el: consfigurator.el.in put-forms.el
perl -wpe$(SUBSTITUTE) consfigurator.el.in >consfigurator.el
+
+put-forms.el:
+ sbcl --disable-debugger --eval '(require "asdf")' --eval $(LOAD) \
+ --eval '(consfigurator::dump-properties-for-emacs "$@")' --quit