asdf-hack.lisp.in: Shore up and distribute.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 5 Aug 2019 09:57:19 +0000 (10:57 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 5 Aug 2019 09:57:19 +0000 (10:57 +0100)
For a long time, this was a private hack.  Shoring up involved using
`*load-pathname*' to find the right directory, and /that/ requires
actually having the hack be in the build directory rather than the
source, and that involves having the makefile put it there, and then it
needs shipping.

Makefile.am
asdf-hack.lisp.in [new file with mode: 0644]
vars.am

index c4fdc05..13b559f 100644 (file)
@@ -56,6 +56,13 @@ SUBDIRS                      += test
 ###--------------------------------------------------------------------------
 ### Additional random things useful during development.
 
+## ASDF hacking for finding the system definitions.
+EXTRA_DIST             += asdf-hack.lisp.in
+noinst_DATA            += asdf-hack.lisp
+asdf-hack.lisp: asdf-hack.lisp.in Makefile
+       $(SUBST) $(srcdir)/asdf-hack.lisp.in >$@.new $(SUBSTITUTIONS) && \
+               mv $@.new $@
+
 ## Emacs hacking for indentation.
 EXTRA_DIST             += emacs-hacks.el
 
diff --git a/asdf-hack.lisp.in b/asdf-hack.lisp.in
new file mode 100644 (file)
index 0000000..90125c2
--- /dev/null
@@ -0,0 +1,6 @@
+;; -*-lisp-*-
+
+(declaim (optimize debug))
+(asdf:initialize-source-registry
+ `(:source-registry :inherit-configuration
+                   (:directory (,*load-pathname* "src"))))
diff --git a/vars.am b/vars.am
index 07735d1..e4406ca 100644 (file)
--- a/vars.am
+++ b/vars.am
@@ -42,6 +42,7 @@ BUILT_SOURCES          =
 bin_PROGRAMS            =
 check_PROGRAMS          =
 pkginclude_HEADERS      =
+noinst_DATA             =
 TESTS                   =
 
 dist_man_MANS           =