Lines 1-6
Link Here
|
1 |
diff -ur ../tornado-1.2.orig/Makefile ./Makefile |
1 |
--- ../tornado-1.3.orig/Makefile Thu Nov 20 08:26:22 2003 |
2 |
--- ../tornado-1.2.orig/Makefile Thu Nov 7 12:45:59 2002 |
2 |
+++ Makefile Sun Jan 9 14:21:24 2005 |
3 |
+++ ./Makefile Mon Apr 21 14:06:38 2003 |
|
|
4 |
@@ -1,10 +1,9 @@ |
3 |
@@ -1,10 +1,9 @@ |
5 |
CC = gcc |
4 |
CC = gcc |
6 |
-MAKE = make |
5 |
-MAKE = make |
Lines 13-19
Link Here
|
13 |
-CFLAGS = -Wall -O2 -DPREFIX="\"$(PREFIX)\"" -DLOCALEPATH="\"$(LOCALEPATH)\"" |
12 |
-CFLAGS = -Wall -O2 -DPREFIX="\"$(PREFIX)\"" -DLOCALEPATH="\"$(LOCALEPATH)\"" |
14 |
+LOCALEPATH = ${PREFIX}/share/locale |
13 |
+LOCALEPATH = ${PREFIX}/share/locale |
15 |
+CFLAGS += -Wall -O2 -DPREFIX="\"$(PREFIX)\"" -DLOCALEPATH="\"$(LOCALEPATH)\"" -I/usr/local/include |
14 |
+CFLAGS += -Wall -O2 -DPREFIX="\"$(PREFIX)\"" -DLOCALEPATH="\"$(LOCALEPATH)\"" -I/usr/local/include |
16 |
VERSION = `echo VERSION | cpp -P -include version.h | tr -d '" ' | grep -v '^$$'` |
15 |
VERSION = `grep " VERSION" version.h | sed s/\"//g | sed s/\#define\ VERSION\ //` |
17 |
LOCALES = de |
16 |
LOCALES = de |
18 |
MAN = doc/man |
17 |
MAN = doc/man |
19 |
@@ -50,17 +49,17 @@ |
18 |
@@ -50,17 +49,17 @@ |
Lines 26-79
Link Here
|
26 |
- cat /var/games/tornado.scores | ./convert-highscorefile > score.tmp; \ |
25 |
- cat /var/games/tornado.scores | ./convert-highscorefile > score.tmp; \ |
27 |
- mv -f score.tmp /var/games/tornado.scores; \ |
26 |
- mv -f score.tmp /var/games/tornado.scores; \ |
28 |
- chmod a+rw-x "/var/games/tornado.scores"; \ |
27 |
- chmod a+rw-x "/var/games/tornado.scores"; \ |
29 |
+ cat ${PREFIX}/share/games/tornado.scores | ./convert-highscorefile > score.tmp; \ |
28 |
+ cat ${PREFIX}/share/games/tornado.scores | ./convert-highscorefile > score.tmp; \ |
30 |
+ mv -f score.tmp ${PREFIX}/share/games/tornado.scores; \ |
29 |
+ mv -f score.tmp ${PREFIX}/share/games/tornado.scores; \ |
31 |
+ chmod a+rw-x "${PREFIX}/share/games/tornado.scores"; \ |
30 |
+ chmod a+rw-x "${PREFIX}/share/games/tornado.scores"; \ |
32 |
else \ |
31 |
else \ |
33 |
- if [ ! -d "/var/games" ]; then \ |
32 |
- if [ ! -d "/var/games" ]; then \ |
34 |
- mkdir /var/games; \ |
33 |
- mkdir /var/games; \ |
35 |
+ if [ ! -d "${PREFIX}/share/games" ]; then \ |
34 |
+ if [ ! -d "${PREFIX}/share/games" ]; then \ |
36 |
+ mkdir ${PREFIX}/share/games; \ |
35 |
+ mkdir ${PREFIX}/share/games; \ |
37 |
fi; \ |
36 |
fi; \ |
38 |
- install tornado.scores /var/games; \ |
37 |
- install tornado.scores /var/games; \ |
39 |
- chmod a+w-x "/var/games/tornado.scores"; \ |
38 |
- chmod a+w-x "/var/games/tornado.scores"; \ |
40 |
+ install tornado.scores ${PREFIX}/share/games/; \ |
39 |
+ install tornado.scores ${PREFIX}/share/games; \ |
41 |
+ chmod a+w-x "${PREFIX}/share/games/tornado.scores"; \ |
40 |
+ chmod a+w-x "${PREFIX}/share/games/tornado.scores"; \ |
42 |
fi |
41 |
fi |
43 |
|
42 |
|
44 |
install-locale-data: |
43 |
install-locale-data: |
45 |
@@ -68,7 +67,7 @@ |
|
|
46 |
|
47 |
uninstall: |
48 |
rm -f $(PREFIX)/bin/tornado |
49 |
- rm -f /var/games/tornado.scores |
50 |
+ rm -f ${PREFIX}/share/games/tornado.scores |
51 |
$(MAKE) -C $(MAN) uninstall |
52 |
$(MAKE) -C po uninstall |
53 |
|
54 |
@@ -84,17 +83,17 @@ |
55 |
fi |
56 |
install -m 0644 tornado.6 $(PREFIX)/man/man6 |
57 |
|
58 |
- if [ -f "/var/games/tornado.scores" ]; then \ |
59 |
+ if [ -f "${PREFIX}/share/games/tornado.scores" ]; then \ |
60 |
echo "Skipping install of the highscores file. File exists."; \ |
61 |
- cat /var/games/tornado.scores | ./convert-highscorefile > score.tmp; \ |
62 |
- mv -f score.tmp /var/games/tornado.scores; \ |
63 |
- chmod a+rw-x "/var/games/tornado.scores"; \ |
64 |
+ cat ${PREFIX}/share/games/tornado.scores | ./convert-highscorefile > score.tmp; \ |
65 |
+ mv -f score.tmp ${PREFIX}/share/games/tornado.scores; \ |
66 |
+ chmod a+rw-x "${PREFIX}/share/games/tornado.scores"; \ |
67 |
else \ |
68 |
- if [ ! -d "/var/games" ]; then \ |
69 |
- mkdir /var/games; \ |
70 |
+ if [ ! -d "${PREFIX}/share/games" ]; then \ |
71 |
+ mkdir ${PREFIX}/share/games; \ |
72 |
fi; \ |
73 |
- install tornado.scores /var/games; \ |
74 |
- chmod a+w-x "/var/games/tornado.scores"; \ |
75 |
+ install tornado.scores ${PREFIX}/share/games; \ |
76 |
+ chmod a+w-x "${PREFIX}/share/games/tornado.scores"; \ |
77 |
fi |
78 |
|
79 |
dist: clean |