diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | Makefile | 12 |
2 files changed, 18 insertions, 0 deletions
@@ -1,5 +1,11 @@ 2009-12-02 Kaz Kylheku <kkylheku@gmail.com> + * Makefile (install-tests): New target. Provides a way to make the + test cases part of the installation, and a generated script to run the + commands on the installation host. + +2009-12-02 Kaz Kylheku <kkylheku@gmail.com> + Fix annoyances with dependency generation, such as picking up local files that are not in the project. @@ -118,6 +118,18 @@ install: $(PROG) $(call INSTALL,0755,txr,$(DESTDIR)$(bindir)) $(call INSTALL,0444,$(top_srcdir)/txr.1,$(DESTDIR)$(mandir)/man1) +# +# Install the tests as well as the script to run them +# +install-tests: + cd $(top_srcdir) ; find tests -name '*.out' -prune -o -print | cpio -pd $(DESTDIR)$(datadir) + ( echo "#!/bin/sh" ; \ + echo "set -ex" ; \ + echo "cd $(datadir)" ; \ + make -s -n tests top_srcdir=. PROG=$(bindir)/txr ) \ + > run.sh + $(call INSTALL,0755,run.sh,$(DESTDIR)$(datadir)/tests) + config.make config.h: @echo "$@ missing: you didn't run ./configure" @exit 1 |