summaryrefslogtreecommitdiff
path: root/games/tileworld/patches/patch-aa
blob: 8eda296e2ef5eba2826d7b4aff20bc7c14686d30 (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
$NetBSD: patch-aa,v 1.2 2004/03/10 00:53:37 snj Exp $

--- Makefile.in.orig	2002-04-25 07:02:56.000000000 -0700
+++ Makefile.in	2004-03-09 16:45:56.000000000 -0800
@@ -68,14 +68,14 @@ err.o      : err.c oshw.h err.h
 #
 
 comptime.h:
-	echo \#define COMPILE_TIME \"`date '+%Y %b %e %T %Z'`\" > comptime.h
+	${ECHO} \#define COMPILE_TIME \"`${DATE} '+%Y %b %e %T %Z'`\" > comptime.h
 
 #
 # Libraries
 #
 
 liboshw.a: oshw.h defs.h gen.h state.h err.h oshw/*.c oshw/*.h
-	(cd oshw && make)
+	(cd oshw && ${MAKE})
 
 #
 # Resources
@@ -89,17 +89,18 @@ tworldres.o: tworld.ico
 #
 
 install: tworld
-	cp -i ./tworld $(bindir)/.
-	mkdir -p $(sharedir)/sets
-	mkdir -p $(sharedir)/data
-	mkdir -p $(sharedir)/res
-	mkdir -p $(mandir)/man6
-	cp -i sets/*.dac $(sharedir)/sets/.
-	cp -i data/*.dat $(sharedir)/data/.
-	cp -i resources/rc $(sharedir)/res/.
-	cp -i resources/*.bmp $(sharedir)/res/.
-	cp -i resources/*.wav $(sharedir)/res/.
-	cp -i docs/tworld.6 $(mandir)/man6/.
+	${BSD_INSTALL_PROGRAM} tworld $(bindir)/
+	${BSD_INSTALL_DATA_DIR} $(sharedir)/sets
+	${BSD_INSTALL_DATA_DIR} $(sharedir)/data
+	${BSD_INSTALL_DATA_DIR} $(sharedir)/res
+	${BSD_INSTALL_DATA} sets/*.dac $(sharedir)/sets/
+	${BSD_INSTALL_DATA} data/*.dat $(sharedir)/data/
+	${BSD_INSTALL_DATA} resources/rc resources/*.bmp \
+			resources/*.wav $(sharedir)/res/
+	${BSD_INSTALL_MAN} docs/tworld.6 $(mandir)/man6/
+	${BSD_INSTALL_DATA_DIR} $(prefix)/share/doc/tworld
+	${BSD_INSTALL_DATA} README $(prefix)/share/doc/tworld/
+	${BSD_INSTALL_DATA} docs/tworld.html $(prefix)/share/doc/tworld/
 
 clean:
 	rm -f $(OBJS) tworld mklynxcc comptime.h config.*