blob: 3029d59638037fa592d105dc25d254dd7499306b (
plain) (
blame)
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
|
--- Makefile.orig 2007-12-17 23:05:00.000000000 +0100
+++ Makefile 2014-04-11 21:13:39.000000000 +0200
@@ -1,8 +1,8 @@
-prefix = /usr/local
-gamesdir = ${prefix}/games
-datadir = ${prefix}/share
-pkgdatadir = $(datadir)/games/monsterz
+prefix? = /usr/local
+gamesdir = ${prefix}/bin
+datadir = ${prefix}/share/monsterz
+pkgdatadir = $(datadir)
scoredir = /var/games
scorefile = $(scoredir)/monsterz
@@ -22,7 +22,7 @@
all: monsterz
monsterz: monsterz.c
- $(CC) -Wall monsterz.c -DDATADIR=\"$(pkgdatadir)\" -DSCOREFILE=\"$(scorefile)\" -o monsterz
+ $(CC) $(CFLAGS) -Wall monsterz.c -DDATADIR=\"$(pkgdatadir)\" -DSCOREFILE=\"$(scorefile)\" -o monsterz
bitmap: $(BITMAP)
@@ -42,17 +42,17 @@
install: all
mkdir -p $(DESTDIR)$(gamesdir)
cp monsterz $(DESTDIR)$(gamesdir)/
- chown root:games $(DESTDIR)$(gamesdir)/monsterz
- chmod g+s $(DESTDIR)$(gamesdir)/monsterz
+ #chown root:games $(DESTDIR)$(gamesdir)/monsterz
+ #chmod g+s $(DESTDIR)$(gamesdir)/monsterz
mkdir -p $(DESTDIR)$(pkgdatadir)/graphics
mkdir -p $(DESTDIR)$(pkgdatadir)/sound
cp monsterz.py $(DESTDIR)$(pkgdatadir)/
cp $(BITMAP) $(DESTDIR)$(pkgdatadir)/graphics/
cp $(SOUND) $(MUSIC) $(DESTDIR)$(pkgdatadir)/sound/
mkdir -p $(DESTDIR)$(scoredir)
- test -f $(DESTDIR)$(scorefile) || echo "" > $(DESTDIR)$(scorefile)
- chown root:games $(DESTDIR)$(scorefile)
- chmod g+w $(DESTDIR)$(scorefile)
+ test -f $(DESTDIR)$(scorefile) || /usr/bin/touch $(DESTDIR)$(scorefile)
+ #chown root:games $(DESTDIR)$(scorefile)
+ #chmod g+w $(DESTDIR)$(scorefile)
uninstall:
rm -f $(DESTDIR)$(gamesdir)/monsterz
|