blob: 40e592269be7a63e6000142b91d079309bd39f45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
$NetBSD: patch-aa,v 1.2 2004/05/12 01:39:00 jschauma Exp $
--- Makefile.orig 1999-06-26 10:37:17.000000000 -0400
+++ Makefile 2004-05-11 21:31:49.000000000 -0400
@@ -3,16 +3,16 @@
# ---- FILE LOCATIONS ----
-PREFIX = /usr/local
+#PREFIX = /usr/local
BINDIR = ${PREFIX}/bin
MANDIR = ${PREFIX}/man/man6
SCOREFILE = /var/games/zombies_score
-BINOWN = games
-BINGRP = games
-BINMODE = 2555
-MANOWN = root
-MANGRP = wheel
-MANMODE = 444
+#BINOWN = games
+#BINGRP = games
+#BINMODE = 2555
+#MANOWN = root
+#MANGRP = wheel
+#MANMODE = 444
SCOREMODE = 664
# ---- COMPILER OPTIONS ----
@@ -23,11 +23,11 @@
#CC = cc
# For gcc with all sorts of checks
-FLAGS = -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes \
- -Wpointer-arith -Wreturn-type -Wcomment -Waggregate-return \
- -Wunused -Wbad-function-cast -Wcast-align -Wcast-qual \
- -Wchar-subscripts -Winline -Wmissing-declarations \
- -Wpointer-arith -Wshadow
+#FLAGS = -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes \
+# -Wpointer-arith -Wreturn-type -Wcomment -Waggregate-return \
+# -Wunused -Wbad-function-cast -Wcast-align -Wcast-qual \
+# -Wchar-subscripts -Winline -Wmissing-declarations \
+# -Wpointer-arith -Wshadow
# For almost everything else
#FLAGS = -O2
@@ -49,9 +49,9 @@
# ---- INSTALLATION PROGRAMS ----
# BSDish
-INSTALL_PROG = install -c -s -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
-INSTALL_MAN = install -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE}
-INSTALL_SCORE = install -c -o ${BINOWN} -g ${BINGRP} -m ${SCOREMODE}
+INSTALL_PROG = ${BSD_INSTALL_GAME}
+INSTALL_MAN = ${BSD_INSTALL_MAN}
+INSTALL_SCORE = ${BSD_INSTALL_DATA} -m ${SCOREMODE}
# SysVish
#INSTALL_PROG = install -u ${BINOWN} -g ${BINGRP} -m ${BINMODE}
@@ -77,6 +77,7 @@
install: ${PROG}
${INSTALL_PROG} ${PROG} ${BINDIR}
${INSTALL_MAN} ${MAN} ${MANDIR}
+ ${INSTALL_SCORE} /dev/null ${PREFIX}/share/games/zombies_score.dist
if [ ! -f ${SCOREFILE} ]; then \
${INSTALL_SCORE} /dev/null ${SCOREFILE} ; \
fi
|