$OpenBSD: patch-Makefile_in,v 1.1 2002/04/08 23:21:33 naddy Exp $
--- Makefile.in.orig	Wed Feb 20 18:28:42 2002
+++ Makefile.in	Tue Apr  9 01:10:47 2002
@@ -379,10 +379,13 @@ maintainer-clean-generic clean mostlycle
 
 
 install-exec-hook:
-	-(chgrp games $(bindir)/$$p; chmod g+s $(bindir)/$$p)
-	install -d $(scoredir)
-	touch $(scorefile)
-	-(chgrp games $(scorefile); chmod g+rw $(scorefile))
+	-@list='$(bin_PROGRAMS)'; for p in $$list; do \
+		chgrp games $(DESTDIR)$(bindir)/$$p; \
+		chmod g+s $(DESTDIR)$(bindir)/$$p; \
+	done
+	install -d $(DESTDIR)$(scoredir)
+	touch $(DESTDIR)$(scorefile)
+	-(chgrp games $(DESTDIR)$(scorefile); chmod g+rw $(DESTDIR)$(scorefile))
 
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
