From a14cf42f0b9de88aa5b8a68b8f594fcfc6048350 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 2 Dec 2009 22:47:03 -0800 Subject: * 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. --- ChangeLog | 6 ++++++ Makefile | 12 ++++++++++++ 2 files changed, 18 insertions(+) diff --git a/ChangeLog b/ChangeLog index 5a08bf20..e3282a89 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-12-02 Kaz Kylheku + + * 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 Fix annoyances with dependency generation, such as picking up local diff --git a/Makefile b/Makefile index e756e35c..b166b12d 100644 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.3