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".