SDL: test: Use install(1) more portably

From a95f5a792c2b80e817ca7ad4d4d3e75e107873a6 Mon Sep 17 00:00:00 2001
From: Simon McVittie <[EMAIL REDACTED]>
Date: Fri, 20 May 2022 19:43:02 +0100
Subject: [PATCH] test: Use install(1) more portably

I had assumed that only Linux users would be interested in GNOME-style
installed-tests, but in principle there's no reason why they can't be
used on non-Linux.

Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 test/Makefile.in | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/test/Makefile.in b/test/Makefile.in
index 8fce76e61d8..e3e6db9917d 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -103,9 +103,11 @@ generatetestmeta:
 	done
 
 install: all
-	install -D -t $(DESTDIR)$(installedtestsdir) $(TARGETS)
-	install -m644 -D -t $(DESTDIR)$(installedtestsdir) $(DATA)
-	install -m644 -D -t $(DESTDIR)$(installedtestsmetadir) *.test
+	install -d $(DESTDIR)$(installedtestsdir)
+	install $(TARGETS) $(DESTDIR)$(installedtestsdir)
+	install -m644 $(DATA) $(DESTDIR)$(installedtestsdir)
+	install -d $(DESTDIR)$(installedtestsmetadir)
+	install -m644 *.test $(DESTDIR)$(installedtestsmetadir)
 
 Makefile: $(srcdir)/Makefile.in
 	$(SHELL) config.status $@