From: Christopher Martin <chrsmrtn@debian.org>
Date: Sat, 14 May 2022 03:32:58 +0800
Subject: Remove makefile function which attempted to install files

directly (not compatible with packaging).
Last-Update: 2010-02-20
---
 Makefile.am | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 9f93d75..dd93f62 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,4 @@
-SUBDIRS=jax @getopt@ @mdetect@ @gpm_imwheel@
+SUBDIRS=jax getopt @mdetect@ @gpm_imwheel@
 
 bin_PROGRAMS=imwheel
 
@@ -22,19 +22,6 @@ dist-hook:
 		find $(distdir) -name CVS -exec rm -rvf '{}' ';' ; \
 	done
 
-ETCDIR=/etc/X11/imwheel
-
-install-exec-hook:
-if SUID
-	progname=$(DESTDIR)$(bindir)/`echo imwheel|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'` ; \
-	chown @suid@ $$progname ; \
-	chmod u+s $$progname
-endif
-	$(mkinstalldirs) $(ETCDIR)
-	-[ -f /etc/imwheelrc ] && mv /etc/imwheelrc $(ETCDIR)/imwheelrc || true
-	-[ -f /etc/X11/imwheelrc ] && mv /etc/X11/imwheelrc $(ETCDIR)/imwheelrc || true
-	-[ -f $(ETCDIR)/imwheelrc ] && install -m 644 imwheelrc $(ETCDIR)/imwheelrc.new || install -m 644 imwheelrc $(ETCDIR)/imwheelrc
-
 extras: $(EXTRA_PROGRAMS)
 
 if NO_GPM_DOC
