src/Makefile.am: Build `sod' if we're just distributing.
[sod] / src / Makefile.am
index e427774..b8f0e85 100644 (file)
@@ -127,6 +127,9 @@ sod$(EXEEXT): $(LISP_SOURCES) sod.asd sod-frontend.asd auto.lisp
        $(V_DUMP)$(ASDF_ENV) $(CL_LAUNCH) -o $@ -d ! -l $(LISPSYS) +I \
                -s sod-frontend -r sod-frontend:main
 
+## The executable is needed if we're just distributing.
+dist-hook: sod$(EXEEXT)
+
 ###--------------------------------------------------------------------------
 ### Unit testing.
 
@@ -221,6 +224,7 @@ noinst_DATA         += asdf-hack.lisp
 asdf-hack.lisp: asdf-hack.lisp.in Makefile
        $(SUBST) $(srcdir)/asdf-hack.lisp.in >$@.new $(SUBSTITUTIONS) && \
                mv $@.new $@
+CLEANFILES             += asdf-hack.lisp
 
 ## Emacs hacking for indentation.
 EXTRA_DIST             += emacs-hacks.el