From: Simon McVittie <smcv@debian.org>
Date: Wed, 17 Nov 2021 10:35:24 +0000
Subject: test: Add a target to install the test executables

This allows them to be used as manual smoke-tests to check that the
library is working.

Signed-off-by: Simon McVittie <smcv@debian.org>
---
 test/Makefile.in | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/test/Makefile.in b/test/Makefile.in
index c60896d..37309f7 100755
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -15,6 +15,14 @@ TARGETS = \
 
 all: Makefile $(TARGETS)
 
+installedtestsdir =
+
+ifneq ($(installedtestsdir),)
+install:
+	install -D -t $(DESTDIR)$(installedtestsdir) $(TARGETS)
+	install -m644 -D -t $(DESTDIR)$(installedtestsdir) $(wildcard $(srcdir)/*.bmp)
+endif
+
 Makefile: $(srcdir)/Makefile.in
 	$(SHELL) config.status $@
 
