I'm sick of not having a `make install' target.
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 18 Jun 2005 08:36:52 +0000 (08:36 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 18 Jun 2005 08:36:52 +0000 (08:36 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/puzzles@5973 cda61777-01e9-0310-a592-d414129be87e

Recipe
mkfiles.pl

diff --git a/Recipe b/Recipe
index 847ca73..7510d57 100644 (file)
--- a/Recipe
+++ b/Recipe
@@ -135,3 +135,12 @@ FORCE:
        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
index b805dbe..96a98fa 100755 (executable)
@@ -894,6 +894,7 @@ if (defined $makefiles{'gtk'}) {
     "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".