+## Autodetected configuration.
+EXTRA_DIST += auto.lisp.in
+CLEANFILES += auto.lisp
+auto.lisp: auto.lisp.in Makefile
+ $(SUBST) $(srcdir)/auto.lisp.in >$@.new $(SUBSTITUTIONS) && \
+ grep '^[^;]' $@.new >$@.strip && \
+ rm -f $@.new && mv $@.strip $@
+
+## Building a working-tree system definition.
+EXTRA_DIST += sod.asd.in
+CLEANFILES += sod.asd
+sod.asd: sod.asd.in Makefile
+ $(SUBST) $(srcdir)/sod.asd.in >$@.new $(SUBSTITUTIONS) && \
+ mv $@.new $@
+
+EXTRA_DIST += sod-frontend.asd.in
+CLEANFILES += sod-frontend.asd
+sod-frontend.asd: sod-frontend.asd.in Makefile
+ $(SUBST) $(srcdir)/sod-frontend.asd.in >$@.new $(SUBSTITUTIONS) && \
+ mv $@.new $@
+