File Intall-target.patch of Package check-a11y

From 079380a909c6fab21bc4fe6d7428f43b259d147f Mon Sep 17 00:00:00 2001
From: Michal Suchanek <msuchanek@suse.de>
Date: Sun, 28 Apr 2024 16:53:52 +0200
Subject: [PATCH] Install target

---
 Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Makefile b/Makefile
index 1da2c83..add970d 100644
--- a/Makefile
+++ b/Makefile
@@ -25,6 +25,9 @@ ALL=look
 CFLAGS += -g -Wall
 CXXFLAGS += -g -Wall
 
+PREFIX ?= /usr
+LIBEXECDIR ?= $(PREFIX)/lib
+
 all: build
 
 GTK2_BUILT=$(realpath show_gtk2)
@@ -498,6 +501,9 @@ endif
 # check_winforms disabled for now, as it doesn't work.
 check: check_gtk2 check_gtk3 check_gtk4 check_pygtk2 check_pygtk3 check_pygtk4 check_qt5 check_qt6 check_pyqt4msg check_pyqt5 check_pyqt5msg check_pyqt6 check_pyqt6msg check_java check_java8 check_java11 check_java15 check_java16 check_java17 check_java18 check_java19 check_java20 check_java21 check_java22
 
+install: $(ALL)
+	install -m 755 -D -t $(DESTDIR)$(LIBEXECDIR)/check-a11y check atspi-top troubleshoot show_py* $(ALL)
+
 #
 # And clean our mess
 #
-- 
2.44.0

openSUSE Build Service is sponsored by