--- Makefile.orig	Tue Mar 16 09:03:58 1999
+++ Makefile	Thu Sep 14 18:30:28 2000
@@ -5,7 +5,7 @@
 #################################################
 
 # WISHPROG can be a full path or just program name.
-WISHPROG	= wish
+WISHPROG	= wish8.2
 
 # Set GNATS=network if you _are_ using the GNATS daemon "gnatsd".
 # Set GNATS=local   if you're going to access disk files directly.
@@ -16,7 +16,7 @@
 
 ########## TkGnats installation locations
 
-prefix		= /usr/local
+prefix		= $(PREFIX)
 
 ########## tkgnats executable location
 BINDIR		= $(prefix)/bin
@@ -231,70 +231,70 @@
 install_man:
 	-$(MAKEPATH) $(MANDIR)
 	-$(MAKEPATH) $(MANDIR)/man1
-	@chmod 664 $(manfiles)
+	@chmod 644 $(manfiles)
 	for f in $(manfiles); do \
 	    cp -p $$f $(MANDIR)/man1/$$f; \
 	done
 
 $(T_BIN)/tkgnats: tkgnats Makefile
 	$(SED) $(WISH_SED) $(TKGNATSLIB_SED) <tkgnats >$@
-	@chmod 775 $@
+	@chmod 755 $@
 
 $(T_LIB)/CHANGES: CHANGES
 	cp -p CHANGES $@
-	@chmod 664 $@
+	@chmod 644 $@
 
 $(T_LIB)/VERSION: VERSION
 	cp -p VERSION $@
-	@chmod 664 $@
+	@chmod 644 $@
 
 $(T_LIB)/tkeditpr.tcl: tkeditpr.tcl Makefile
 	cp -p tkeditpr.tcl $@
-	@chmod 664 $@
+	@chmod 644 $@
 
 $(T_LIB)/tkviewpr.tcl: tkviewpr.tcl Makefile
 	cp -p tkviewpr.tcl $@
-	@chmod 664 $@
+	@chmod 644 $@
 
 $(T_LIB)/tksendpr.tcl: tksendpr.tcl Makefile
 	cp -p tksendpr.tcl $@
-	@chmod 664 $@
+	@chmod 644 $@
 
 $(T_LIB)/tkquerypr.tcl: tkquerypr.tcl Makefile
 	cp -p tkquerypr.tcl $@
-	@chmod 664 $@
+	@chmod 644 $@
 
 $(T_LIB)/tkprdatesel.tcl: tkprdatesel.tcl Makefile
 	cp -p tkprdatesel.tcl $@
-	@chmod 664 $@
+	@chmod 644 $@
 
 $(T_LIB)/tkprfolder.tcl: tkprfolder.tcl Makefile
 	cp -p tkprfolder.tcl $@
-	@chmod 664 $@
+	@chmod 644 $@
 
 $(T_LIB)/tkprfont.tcl: tkprfont.tcl Makefile
 	cp -p tkprfont.tcl $@
-	@chmod 664 $@
+	@chmod 644 $@
 
 $(T_LIB)/tkpr_library.tcl: tkpr_library.tcl Makefile
 	cp -p tkpr_library.tcl $@
-	@chmod 664 $@
+	@chmod 644 $@
 
 $(T_LIB)/tkprprint.tcl: tkprprint.tcl Makefile
 	cp -p tkprprint.tcl $@
-	@chmod 664 $@
+	@chmod 644 $@
 
 $(T_LIB)/tkprsort.tcl: tkprsort.tcl Makefile
 	cp -p tkprsort.tcl $@
-	@chmod 664 $@
+	@chmod 644 $@
 
 $(T_LIB)/tkprhelp.tcl: tkprhelp.tcl Makefile
 	cp -p tkprhelp.tcl $@
-	@chmod 664 $@
+	@chmod 644 $@
 
 $(T_LIB)/tkgnats.doc: tkgnats.doc Makefile
 	cp -p tkgnats.doc $@
-	@chmod 664 $@
+	@chmod 644 $@
 
 # Again, the following ugliness is intentional and works on Linux, Solaris 2.5 and IRIX64 6.2.
 
@@ -325,7 +325,7 @@
 	  echo cp -p tkgnats.config $@; \
 	  cp -p tkgnats.config $@; \
 	fi;
-	@chmod 664 $@
+	@chmod 644 $@
 
 # The following was OK on my Linux system but failed on Solaris and IRIX64.
 
@@ -339,19 +339,19 @@
 
 $(T_LIB)/tkgnats.xbm: tkgnats.xbm Makefile
 	cp -p tkgnats.xbm $@
-	@chmod 664 $@
+	@chmod 644 $@
 
 $(T_LIB)/tkquerypr.xbm: tkquerypr.xbm Makefile
 	cp -p tkquerypr.xbm $@
-	@chmod 664 $@
+	@chmod 644 $@
 
 $(T_LIB)/tksendpr.xbm: tksendpr.xbm Makefile
 	cp -p tksendpr.xbm $@
-	@chmod 664 $@
+	@chmod 644 $@
 
 $(T_LIB)/tkeditpr.xbm: tkeditpr.xbm Makefile
 	cp -p tkeditpr.xbm $@
-	@chmod 664 $@
+	@chmod 644 $@
 
 package: clean
 	rm -f VERSION
