From fd58b21f9af92ebf0bc37cf53eec05feacbe0780 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Wed, 10 Mar 2021 11:24:46 -0700 Subject: dynamically regenerate emacs/put-forms.el at package build time Signed-off-by: Sean Whitton --- emacs/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'emacs/Makefile') 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/, ) } \ 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 -- cgit v1.2.3