chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f22f311
)
I'm sick of not having a `make install' target.
author
Simon Tatham
<anakin@pobox.com>
Sat, 18 Jun 2005 08:36:52 +0000
(08:36 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Sat, 18 Jun 2005 08:36:52 +0000
(08:36 +0000)
[originally from svn r5973]
Recipe
patch
|
blob
|
history
mkfiles.pl
patch
|
blob
|
history
diff --git
a/Recipe
b/Recipe
index 847ca7325852197f8403917aa70cf6885c334462..7510d57f6eff7e812914d065022cadd26b6d6757 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
diff --git
a/mkfiles.pl
b/mkfiles.pl
index b805dbe0d1f3a9709ae1fbc3c885627c31c5c0f2..96a98fa92887170f4f2dbbc81768f70a4d431758 100755
(executable)
--- 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".