aboutsummaryrefslogtreecommitdiff
path: root/emacs/Makefile
blob: 3f9309c1434b8f7c097e1bb3d4646be70d528921 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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