shithub: puzzles

Download patch

ref: d74d3f26d8dddaefe90868982eb30ea54fb2e5f5
parent: f22f31196bed3b34c2d7511b1bb1bb386b02df72
author: Simon Tatham <anakin@pobox.com>
date: Sat Jun 18 04:36:52 EDT 2005

I'm sick of not having a `make install' target.

[originally from svn r5973]

--- a/Recipe
+++ b/Recipe
@@ -135,3 +135,12 @@
 	fi
 !end
 !specialobj osx version
+
+# make install for Unix.
+!begin gtk
+install:
+	for i in cube net netslide fifteen sixteen twiddle \
+	         pattern rect solo mines samegame flip; do \
+		$(INSTALL_PROGRAM) -m 755 $$i $(DESTDIR)$(gamesdir)/$$i; \
+	done
+!end
--- a/mkfiles.pl
+++ b/mkfiles.pl
@@ -894,6 +894,7 @@
     "prefix=/usr/local\n",
     "exec_prefix=\$(prefix)\n",
     "bindir=\$(exec_prefix)/bin\n",
+    "gamesdir=\$(exec_prefix)/games\n",
     "mandir=\$(prefix)/man\n",
     "man1dir=\$(mandir)/man1\n",
     "\n".