--- Makefile.orig	2007-12-17 23:05:00.000000000 +0100
+++ Makefile	2013-08-19 08:57:30.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)
 
@@ -50,7 +50,7 @@
 	cp $(BITMAP) $(DESTDIR)$(pkgdatadir)/graphics/
 	cp $(SOUND) $(MUSIC) $(DESTDIR)$(pkgdatadir)/sound/
 	mkdir -p $(DESTDIR)$(scoredir)
-	test -f $(DESTDIR)$(scorefile) || echo "" > $(DESTDIR)$(scorefile)
+	test -f $(DESTDIR)$(scorefile) || /usr/bin/touch $(DESTDIR)$(scorefile)
 	chown root:games $(DESTDIR)$(scorefile)
 	chmod g+w $(DESTDIR)$(scorefile)
 
