From d74d3f26d8dddaefe90868982eb30ea54fb2e5f5 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 18 Jun 2005 08:36:52 +0000 Subject: [PATCH] I'm sick of not having a `make install' target. [originally from svn r5973] --- Recipe | 9 +++++++++ mkfiles.pl | 1 + 2 files changed, 10 insertions(+) diff --git a/Recipe b/Recipe index 847ca73..7510d57 100644 --- 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 diff --git a/mkfiles.pl b/mkfiles.pl index b805dbe..96a98fa 100755 --- a/mkfiles.pl +++ b/mkfiles.pl @@ -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".